help-typescript

11339 threads · Page 150 of 227

Array.includes for checking if given value is within a subset? 10 messages
Open
Regex catch html elements in string 34 messages
Resolved Node
Map a function over the leaves of a nested object 9 messages
Open
get an array of types within a type 40 messages
Resolved Node
Minimize main-thread work: optimizing DOM rendering (1000+ spans) 6 messages
Open
Problems with types 2 messages
Open
having trouble typing this code 20 messages
Open Node
Type '(event: MouseEvent) => void' is not assignable to type 'EventListener'. Types of parameters 41 messages
Open React
Omit reduces stict typing 7 messages
Resolved
Initialise variables on all test files in jest 4 messages
Open
Method to check if object type has a required key? 30 messages
Open
I don't understand this circular constraint error. 6 messages
Open
Struggling with accessing `this` scoped variables in abstract base class 3 messages
Open Node
tsc not creating the dist/ folder 20 messages
Resolved
Is there a way to make my code more modular? 16 messages
Open
Assigning to object using Object.keys().forEach 4 messages
Open
Deep Partial which is nice to arrays 7 messages
Open
Why function returns 'never' type 2 messages
Open
What does this 3 functions mean (difference) 92 messages
Resolved
what does this error mean 8 messages
Resolved
How to "convert" void to undefined, maybe with a type guard? 13 messages
Open
How to export Nextjs server renderable tsc components 4 messages
Open React
Why doesn't the ?? operator narrow the type used on the left-hand side? 7 messages
Resolved
Ensuring a POJO has exactly and only expected properties 26 messages
Resolved
Pick<Type, Key> Nest key's object 19 messages
Resolved React Node
Typing for sql 17 messages
Open
Variable has type any while it's defined. 4 messages
Open Node
Overloading signatures where both signatures only have two arguments 79 messages
Open
Check for property to exist 7 messages
Open
Cannot find name 'structuredClone'.ts(2304) 13 messages
Resolved
ESLint issue: Error: require() of ES Module strip-ansi\index.js from stylish.js not supported. 31 messages
Open Node
How to use Partial as a builder? 69 messages
Resolved
If I create an interface for an object with methods, do I have to explicitly type them again? 3 messages
Open Node
TypeScript fails to figure out the equality of two generic types 18 messages
Resolved
why this error 68 messages
Resolved
. 10 messages
Open
Reduce cognitive complexity by removing a useless null check 5 messages
Open
Wrapping generics approaches 4 messages
Open
Issue with configuring typescript 9 messages
Open Node
How to narrow string to keyof Object 12 messages
Resolved
Inheritance with zod interfaces and classes 3 messages
Open
(pt. 2) using constrained identity functions with classes 11 messages
Resolved
TS complains "property is possibly 'undefined'" in jest test 2 messages
Open
Nulls not removed after checking `!` and throwing 7 messages
Resolved
Object.assign with object array target and object array source 17 messages
Open Node
type assertion 5 messages
Open
Looking to share type definitions across multiple TS projects, all inside one monorepo 6 messages
Vue Resolved Node
Narrowing the return type of a function based off of a dynamic parameter from the caller function 8 messages
Open
Can you type check a TS file without emitting it, but emit all other TS files? 24 messages
Resolved
TypeScript with local storage 19 messages
Resolved React