help-typescript

11339 threads · Page 154 of 227

Shorter way to extend an interface 7 messages
Resolved
A type predicate's type must be assignable to its parameter's type. When creating a type guard 40 messages
Open
spreading tuple unions works @ single file, causes error @ multiple files 82 messages
Open
Promise<JSX.Element>' is not a valid JSX element type 2 messages
Open React
Can you remind me why `[A | B]` is not assignable to `[A] | [B]`? 48 messages
Resolved
Is there a way to "disallow" a key on a union type? 17 messages
Open
Importing svg 7 messages
Open
Imports issue 25 messages
Resolved
Invariant checking process.env values 7 messages
Resolved
Type guard for checking if some thing has a property 77 messages
Resolved
How can I have the return type dynamically be an element of a given array? 15 messages
Resolved
Generic Type for access items 6 messages
Resolved
Can't figure out the type for a React onClick event 14 messages
Resolved React
How do you convert the keys of Interface to an Array of Strings? 4 messages
Resolved
Enforce unique keys in static "list" 84 messages
Open
Specifying a non-default generic parameter for the second required generic parameter with a default 5 messages
Resolved
Using inferred generics with a generator function per-yield 11 messages
Open
Nested try catch 16 messages
Open
How to supply default generic to imported module 2 messages
Open React
Help with types 30 messages
Open
Call promise into a react component 9 messages
Open
No value exists in scope for the shorthand property 'satisfies'. 19 messages
Resolved Node
Create a helper type to transform specific things to other things 4 messages
Open
Complex Generic Type 14 messages
Open
Type in 2 variations (camelCase and snake_case) 4 messages
Open
a well typed `flattenObject` function 13 messages
Open
Typescript not acknowledging possibility of undefined 4 messages
Resolved Node
importing types globally from shared module 3 messages
Open
How do I pass param for number search to API? 2 messages
Open
Indexing large deeply-nested data structures 9 messages
Resolved
jsx restrict intrinsic element children types 14 messages
Resolved
identify the very first element in a recursive type 4 messages
Open
Infer type of Array<string>.includes searchElement 30 messages
Open
Only suggest common, base props until the type is inferred? 43 messages
Open Node
how to add types for this function? 11 messages
Open
error handling class? 4 messages
Open
using API types throughout the application 5 messages
Open
type narrowing 18 messages
Resolved
how do i make project in vs code now 2 messages
Open
Class Unit testing 13 messages
Open
instanceof returns false on a true condition 45 messages
Open Node
Unexpected type in lodash functions 23 messages
Open
how to compile tsx react components without jsx runtime 6 messages
Open
typescript says that only one string when it's typed for multiple 17 messages
Open React
Problem with JSON and cookies. 11 messages
Resolved
Typing an object with a title and a variable amount of data props defined by year 42 messages
Resolved
Is the way I did types correct? Or can it be improved? 8 messages
Open Node
Help with Millisecond 20 messages
Open
is there anyway can I export Event Listener? 17 messages
Resolved Node
Type type narrowing not working 89 messages
Resolved