help-typescript

11339 threads · Page 123 of 227

Help with project structure 252 messages
Open
Check type of value before using it to index type 5 messages
Open React
Accept optional transformer parameter and return modified generic type only if present 23 messages
Resolved
Bot Crashing with no error? 8 messages
Open Node
Typescript using the arguments of a constructor 2 messages
Open
`typeAcquisition` not working while compiling typescript code with nuget 2 messages
Tooling
Can I suppress TS6133 (is declared but its value is never read) for the next line only? 3 messages
Resolved Node
Code design question: how do I create a promise that fulfills when no `setTimeout`s are waiting? 18 messages
Open Node
Date with undefined in constructor in ts 5 messages
Open Node
Issue with dependencies in yarn workspace as monorepo 7 messages
Tooling Node
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 7 messages
Open Node
`as keyof` not behaving as expected. 17 messages
Open
How can you achieve the same result with a named function? 2 messages
How to merge generics to compose an object of required properties based on an object of optional 34 messages
Open
Enforce function signature 17 messages
Open
app / plugin dev on mac 6 messages
Open
How to see in VS Code the shape of a type created using utility types or inferred? 3 messages
Open
Strange import in open source project 7 messages
Open
Can I set the type of `obj.function`'s `this` to be `obj`'s properties? 23 messages
Open
Why is my discriminated union not working? 3 messages
Open React
convert optional type to required type with defaults 23 messages
Open
How can I make it easier to receive enum values from database? 23 messages
Resolved
How to delete property in object and cast as a new type? 34 messages
Resolved
ReferenceError: await is not defined 12 messages
Open
Why doesn't Typescript narrow type of dictionary items when using type params for the key? 7 messages
Open
How to fix ts 2556 50 messages
Resolved Node
How do i fix TS7015: Element implicitly has an 'any' type 11 messages
Open Node
How to include other file types and folders in compilation? 4 messages
Open Node
namespaces or not? 58 messages
Open
need help with installing packages 9 messages
Open
How to create a generic for validating data by Zod schema? 10 messages
Resolved
Unable to use Zod parse () without assertion 12 messages
Open
Custom type not working with Discriminated Unions 9 messages
Open
a certain return of an incoming object 2 messages
How to get ALL possible keys from object union, rather than only the common 5 messages
Resolved
Can you implement `interface AssertionApi<E = any>` without assigning `E` to a concrete value? 88 messages
Resolved
Type narrowing in react 5 messages
Open React
Why does explicitly defining a type for an object literal remove a circular reference? 29 messages
Open
How to overwrite the type for the Array.includes method? 113 messages
Open
Help with exporting a function that is extended by EventEmmiter 6 messages
Resolved
What's the proper way to inspect a class / class instance? 10 messages
Open
global custom property 25 messages
Open
Is it possible to type `map` so that types are correctly inferred with overloaded functions? 31 messages
Open
New to TS - Why is it not used? 17 messages
Open Node
Help with inferring generic type 161 messages
Resolved
TypeScript doesn't correctly infer the type 3 messages
Open React
AI chatbot for your documentation 5 messages
Resolved
array.filter doesnt narrow const type 13 messages
Open
Discriminated union control-flow analysis doesn't seem to work 'two levels deep' 8 messages
Open
check for potentially undefined property in const array 4 messages
Open