help-typescript

11339 threads · Page 159 of 227

Generic parameter default breaks autocompletion and argument type 27 messages
Resolved
Genericizing generic constraints 5 messages
Open
Property 'keys' in type 'History' is not assignable to the same property in base 6 messages
Open React
`ConstructorParameters` vs `Parameters` 19 messages
Resolved
String union as object key 6 messages
Open
Remove undefined type without casting? 4 messages
Open
Distributing a module augmentation 8 messages
Open
Type inference issue with functions composition 15 messages
Open
Confusion about type-argument inference in generic function 29 messages
Open
Something akin to a "type function" 17 messages
Open Node
How to type ...props in interfaces 3 messages
Open React
Specify a property extends a type, but isn't exactly that type 2 messages
Open
Get class name on types level 2 messages
Open Node
How to relate two generic function arguments of union types? 3 messages
Open
What will be the type of error in a try catch where I'm awaiting a fetch? 3 messages
Resolved
What to do when types are not exported from npm module 72 messages
Open
react: Cannot find namespace 'AuthContext'. 3 messages
React
Maintain types after mapping array 5 messages
Resolved
How to "exact" an object made up of optional keys 26 messages
Open
Issues with passing parameters to module functions 8 messages
Open
How do I handle error state of my API in my fetch wrapper? 31 messages
Resolved React
Error: '?' expected. ts(1005) 12 messages
Tooling
How to configure tsconfig for locally defined types? 99 messages
Resolved
What is the type I should set for my argument which is the JSON body for my fetch request? 8 messages
Open React
Is it possible to remove type widening due to `| string`? 12 messages
Open
Function overloading and type narrowing 5 messages
Open React
How to Infer number union from string literal union 5 messages
Resolved
If class can implement a class, will the class can take the position of the interface? 11 messages
Resolved
How can I automatically spread generics into an array 3 messages
Open
[TS2705] I am in need of some explanation on how to resolve this error. 2 messages
Resolved
PromiseAll wrapper types are not getting inference the way it happens for Promise.all 3 messages
Open
string replace expression needed 7 messages
Resolved
type hinting? 4 messages
Open Node
Help creating type definitions (.d.ts files) for a non-ts project 15 messages
Resolved
How to properly initialize variable of interface? 22 messages
Open Angular
Where do i list my types? 12 messages
Open Node
Initializer type (Date | null)[] is not assignable to variable type Date[] 7 messages
Open Vue
Converting to/from and distinguishing between arrays, tuples, variadic tuples? 5 messages
Open
Downloading a file with progress reporting - understanding Promises 6 messages
Open
Strange transform from GQL types 12 messages
Resolved
TS compiler swallowing Optional type 135 messages
Open React
function returns object determined by args 24 messages
Open
Bit wise enums 6 messages
Resolved
Are CSS source maps important? 5 messages
Open
NPM package with ESLint config 16 messages
Open React Node Tooling
Types does not work outside of src directory 21 messages
Open Node
Enforce type of Generic based on optional argument? 10 messages
Resolved
Unable to correctly detect overloaded props in React 2 messages
Open React
Use keys of type A's property with index signature as type B's keys 11 messages
Resolved Node
Reference a type in Props in React 3 messages
Open React