help-typescript

11339 threads · Page 158 of 227

Make suffix required in `prefix:${string}` 14 messages
Resolved
Possibly undefined, with checks in place 23 messages
Resolved Node
How I can add default values to props? 10 messages
Open
How to type generic object setter 13 messages
Open
Best practices for developing Angular Project 4 messages
Open Angular
Property 'href' does not exist on type 30 messages
Resolved React
imported const used inside an interface. Not detected. 5 messages
Open
Generics - optional record gets inferred wrongly 53 messages
Open
generic type problem 3 messages
Resolved
discriminated union with augmented type resolving to never 3 messages
Open
How to have autocomplete for keys but then restrict type to what was defined 3 messages
Open
React prop types, how to force pairs of props that are related 8 messages
Open React
Expect 1 arguement but got 2. 3 messages
Open
No overload 6 messages
Open
Discord.JS Error 36 messages
Open
Type narrowing with function 16 messages
Open
Truthiness type definition 10 messages
Resolved
How to make a decorator return type to be inferred from the given function ? 15 messages
Open
Type narrowing through type coercion 42 messages
Open
Advice on common community patterns for set theory operations on Arrays 19 messages
Open
How to get VSCode completion for new array methods? 3 messages
Open
Does the order of the interface members matter? 9 messages
Open Tooling
cant make import/export to work I tried every tsconfig.json combinataion 125 messages
Open
Argument of type 'N[NKey]' is not assignable to parameter of type 'N[]'. 3 messages
Open
Extracting members from a union doesn't throw error 24 messages
Open
Check if optional property exists in const object? 5 messages
Resolved
How to call custom mongoose methods when using the create function 16 messages
Open
Optional `data` parameter in class with conditional generics 2 messages
Open
"is not assignable" error in Record of enum to type with generic 7 messages
Open
Type-narrowing from a object property union-type 4 messages
Resolved
How to write a typescript definition for an "object with properties" parameter? 10 messages
Resolved
How to use Intl.supportedValuesOf() 15 messages
Open
Type inference of function argument is lost with union types 3 messages
Resolved
Property 'app' does not exist on type 'WritableDraft<{ channelId: null; channelName: null; }>' Redux 30 messages
Resolved React
String index signature lost? 16 messages
Open
Why isn't the key inferred correctly? 4 messages
Open
css issue in nextjs 13 messages
Open React Node
Need help making this work 4 messages
Open Node
Conditional types 6 messages
Open
Why this generics infer this intersection of types? 14 messages
Open Tooling
Merging a namespace 3 messages
Open
How do I get the type of onChange from a component so that I can make my own version of onChange? 4 messages
Open React
Reproducing a type as a string 23 messages
Open Tooling
ws handleupgrade doesnt upgrade connection 4 messages
Open
Unable to find module in the same directory 3 messages
Resolved
Type narrowing not working for property of an object 10 messages
Open
Return value is not assignable to return type of function 26 messages
Resolved
Function interface based on the params. Have thought of sth but not gonna work 6 messages
Interface value name is wrong(sry title might be wrong) 34 messages
Resolved
I don't understand. why typescript not showing error. 15 messages
Open