menu
Channels
Team
Posts
Members
Info
down-caret

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

I've been programming for over 20 years and I want to create a course for you!

If you have a few minutes, please fill out my TypeForm so I can know what topics you'd like to learn. Thank you and have a wonderful day! https://aaron052812.typeform.com/to/TpCUarCX

thumbsup
1
message-simple
0

TypeScript Vs JavaScript

Hello everybody, I am learning JavaScript for very long time, because I want have complete knowledge in JavaScript Language which I am getting better every day at it. the thing is in future if I have to learn languages like c# or Java, I will be complete clueless because…

thumbsup
0
message-simple
1

Help with type definition using Redux

Hello folks, I would really appreciate if a charitable soul could take a look into this and explain to me what is going on within my 'reducer.tsx'. On line 16, it says "Property 'payload' does not exist on type 'AppActions'. Property 'payload' does not exist on type…

thumbsup
0
message-simple
3