help-typescript

11339 threads · Page 173 of 227

Using Class<T> like in java returns error Property missing 100 messages
Resolved Node
why this interface is only taking the first instruction? 17 messages
Open
Why this code just refuses to work 31 messages
Open Node
Autocompletion for keyof object but also allow any string, and infer the type from union in a switch 60 messages
Open
Preventing type imports from being rewritten as dynamic imports 3 messages
Open
Importing JSON file and using ts5 "const" to get values as type. 5 messages
Open React
Strange behavior with merging Records of incompatible types 2 messages
Open
Prisma's InputJsonValue doesn't allow interfaces or type aliases 12 messages
Resolved Node
Disable creating a union out of a very large array? 12 messages
Resolved
Hello ! what is wrong in my code ? 32 messages
Resolved
Typing JS files in relative paths 3 messages
Resolved
Estimated time 50 messages
Open
for (const key in myObject) { myObject[key] } 29 messages
Resolved
ESLint: Promises must be awaited, end with a call to .catch, end with a call to .then... 37 messages
Open
This expression is not callable 4 messages
Resolved
Discriminating object types 35 messages
Resolved
VSCode intellisense isn't autocompleting paths aliases 11 messages
Open
`import type` without producing an ES module? 96 messages
Resolved Tooling
Using vitest: Mocking React callback prop. 3 messages
Open React
Testing functions that make HTTP requests 44 messages
Open React Tooling
Get type depending on other type 8 messages
Resolved
deconstruct type into smaller types 15 messages
Resolved
Tie RegExp to a value like `<K extends keyof T, V extends T[K]>` 11 messages
Open
Possible to infer string as union of string literals in function params? 8 messages
Resolved
function returning promise returns promise before promise is complete 70 messages
Open
Importing ES module into CJS 41 messages
Resolved
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 50 messages
Resolved
Casting `{ rowData: e}: {rowData: Foo}` 2 messages
How can i get ReturnType from object values 2 messages
Open
Element type of intersection of array/tuple 21 messages
Resolved
How to iterate a union? 49 messages
Resolved
String cant be used as index type, no index signature with a parameter of type string was found 2 messages
Open React
how can I narrow the types of mixins with instanceOf or something similar? 29 messages
Open
Intersection type failing to be awesome 37 messages
Resolved
Either have 2 properties in an interface or neither 6 messages
Open
extends T 4 messages
Resolved
tsconfig use lib only for specific file 74 messages
Open
Moving keys from one interface to another 10 messages
Open
How can I set `tsc --watch` to just compile the contents of a folder to another? 19 messages
Open Tooling
are there @functions/classes in typescript? like in java or python 49 messages
Resolved
Conditional type prematurely resolved to union 5 messages
Open
Help TS infer type as type A or type B, rather than A | B 28 messages
Resolved Node
Function overloading for callback with variable number of args 3 messages
Resolved
discriminating union omits all properties that are not shared 10 messages
Open
Inferring correct overloaded parameters from type parameter function 9 messages
Resolved
Abstract methods dynamic typing 8 messages
Resolved
Keys in object dynamically decided type values in `ReadonlyArray` 4 messages
Open
string and number extension 15 messages
Resolved
Record/Object value based on index string template 42 messages
Resolved Node
Infer generic type, based on argument type, and effect return type. 9 messages
Open