help-typescript

11339 threads · Page 174 of 227

TSCustomType is not assignale to type 'object' 50 messages
Resolved
Need some help figuring out a more dynamic way to have a variable amount of tuple elements 31 messages
Open
'Cannot find module' errors when pulling from a common library, happened randomly 71 messages
Resolved Angular Node
Can we infer a return type of a function based on the types of values in an array? 4 messages
Open
Weird JS output 16 messages
Resolved
Type 'false' cannot be used as an index type? 5 messages
Resolved
Generic types doesn't infer default function values 86 messages
Resolved React
Is there a way to get the ReturnType of the current function I'm in wo using its name? 19 messages
Resolved
I have a Next type that returns the next element in a tuple. How do I implement? 182 messages
Open
Is this a valid case of `any['key']`? 33 messages
Open
Change return type of a function based on the value of arguments 22 messages
Resolved
Is there any behavioral difference between my MyPick and Pick? 9 messages
Resolved
How can I debug why a decorator is not working? 4 messages
Open Node
Having Problems with Changing css through ts 30 messages
Open React Node
Type that prevents `undefined` from being used 10 messages
Open
when tuple literal: 'readonly' type modifier is only permitted on array and tuple literal types 21 messages
Resolved
How to infer types from function argument object. 7 messages
Open React
Inside function:Is there a way to edit a variable as though it's "any" but check its type on return? 5 messages
Resolved
Disable setting of nested properties and the property itself 3 messages
Open Node
Dynamic object key in an interface with union types? 4 messages
Introduce types based on parameter from interface 30 messages
Resolved Node
Narrow unions to one of them 7 messages
Resolved
Custom express.js `Request` property 6 messages
Open Node
Discriminated Union Type as Parameter 5 messages
Resolved
A spread argument must either have a tuple type or be passed to a rest parameter. 21 messages
Open
VScode intellisense not showing all files errors. 11 messages
Open Tooling
Property does not exist on type 4 messages
Open
A package I want to use uses ESM `require()` syntax instead of `import` and causes an error 37 messages
Open
type of a member of another type? 7 messages
Resolved
How to import and export types from one project to another locally? 2 messages
Open React Node
Accessing a class above the declaration? 6 messages
Open
Help me create smart typings 9 messages
Resolved
Difference between typing an object literal and using satisfies? 9 messages
Resolved
How can I fix this conditional conditional types? 8 messages
Open React
Getting keys from object while typing the values 6 messages
Resolved
How do I resolve this case of 'Type T is not assignable to type D'? 13 messages
Resolved
how to use Web Worker API in "lib.webworker.d.ts"? 13 messages
Open React Node
Get the type of the Object in an array of identical objects defined const x = [{...},{...}] as const 47 messages
Resolved
Event on external file write 7 messages
Resolved
ERR_MODULE_NOT_FOUND, 28 messages
Resolved Node
usestate<class> not updating 58 messages
Resolved React
A mapped type to swap props with an explicit type by an Array<number> 29 messages
Open
Object merging, unexpected type 17 messages
Resolved
Type return value of array.filter 21 messages
Open
Type indexing 5 messages
Vue Resolved Node
How to use enum as key of a type 19 messages
Open Node
(SOLVED) Speeding up ts-node server restart time during development 6 messages
Resolved Tooling Node
Can I use generics inside of a tuple? 5 messages
Resolved
useResizeObserver hook types? 9 messages
Open React
React vs Angular, which frontend framework to pair for TypeScript (for a newcomer into the scene) ? 18 messages
Resolved