menu
announcement

Spectrum will become read-only on August 10, 2021. Learn more about the decision in our official announcement.

Channels
Team
Posts
Members
Info
down-caret

plz provide me working solution for this:

I'm working on a practice problem using setTimeOut and callbacks for the first time. This is the situation: You receive a JavaScript object 'recordMap' of the following Client is an interface allowing to a) send a text message, b) receive a text message by registering a callback…

thumbsup
0
message-simple
2

Looking for Amazon Reviewer to add reviews

We have published a book "The TypeScript Workshop". We are giving a chance to read and review the book. If interested drop me a mail on [email protected] or send me a request on https://www.linkedin.com/in/royluis-rodrigues-66479123/

thumbsup
0
message-simple
0

Problem assigning properties with async code in class initializer

What I have I have one class that executes in Its constructor only async code and other code that depends on async code result. According to some StackOverflow answers, to execute asynchronous code in class constructor I can follow one of two paths, run async code on init method…

thumbsup
0
message-simple
2

Hello ! Anyone knows what's happening here with the generic and ReturnType?

https://codesandbox.io/embed/o04hm Problem with ReturnType utility and generics it seems Type 'Meths<S, P>' does not satisfy the constraint '(...args: any) => any'. …

thumbsup
0
message-simple
0

Can i modify the flood element report?

I am getting Average (mean), Standard Deviation, Minimum, Maximum, Last Respone time and my goal is to print load time, finish time and dom content load time in flood element. Is it possible to do and how to do that?

thumbsup
0
message-simple
0

window.performance.timing is deprecated

How can i use performance timing attributes and from which interface. My goal is to calculate the rendering time of the web page, please help if there is any other way to find out. Thanks in advance.

thumbsup
0
message-simple
0

Default values based on conditional types

Hi to all! I was playing a bit with TS regarding conditional types and i was wondering if someone could clarify me a thing. Starting from this example, should the TS linter show me also the text property, since render is a string? And another question - in case the previous one…

thumbsup
0
message-simple
3

Introducing Injex

After nights of hard work 💪, I'm proud that I'm about to finish Injex, a new open source Dependency-Injection framework for TypeScript applications both for the Server and the Client. If you want to see what it can do for you, go to: …

thumbsup
1
message-simple
0

Help with type definition of "as" prop with react

Hello people I need help to create a typing for "as" prop like the one in styled-components. I need to create a Button component that receives an "as" prop that can be any other type of react component (like theLink from the react-router library). I need to keep all the props…

thumbsup
0
message-simple
1

Classical case of "Type 'string' is not assignable to type..."

I have a really simple case. Let's say I have a function that take a configuration. The configuration is a plain JS object that can take any key. The values can be a boolean, a function and a string that represent an alias of another key in the current configuration to be…

thumbsup
0
message-simple
4