help-typescript

11339 threads · Page 134 of 227

Programmatically adding static methods to a class 10 messages
Open Node
Issues with a generic return type? 28 messages
Open
Partial<> inference issue 24 messages
Resolved
Conditional type and infer 17 messages
Vue Resolved
How to extend a Type but change one of the values for the new Type? 8 messages
Open
How to const string = (...args:(email | min5 | size)) => {} where these are functions? 11 messages
Resolved
typeof Map().entries().next().value is any? 3 messages
Open
Monorepo confusion 4 messages
Resolved
Why does Visual Studio Code sometimes replace implicit any's with explicit any? 3 messages
Open
TS2307: Cannot find module './shortcode.md' or its corresponding type declarations. 34 messages
Resolved
How to stop TypeScript from replacing the types on mouseover? 20 messages
Resolved
No errors with generic polymorphic React Component 5 messages
Open React
Typing this generic compareFn-generator for passing to Array.prototype.sort 2 messages
Open
How do you declare a type with a number range? 10 messages
Open
Static constructor (method) with generic types 3 messages
Open
Declare a type to accept a number + "px" 4 messages
Open React
why typescript failed to check the invalid dynamic key during object merge? 4 messages
Open
How to get rid of "Type instantiation is excessively deep and possibly infinite." 18 messages
Open
How to make union of results in a conditional type? 7 messages
Open
best way to extend interface with generics and pass generics along (react-select) 55 messages
Open React
'as const' type clash 19 messages
Resolved
Complex regex for matching folowing pattern eg. B:1d->B:7d->B:14d->B:28d->B:0 32 messages
Tooling Node
Require two props together, or neither of them 27 messages
Resolved
Fully optional object with default values? 21 messages
Resolved
I have 2 possible types for json object, how make condition to determinate possible type? 8 messages
Open
Is there any TS resource specialized in the day-to-day React/Next.js issues? 9 messages
Open
Problem with Typescript when using type narrowing inside array indexed dynamically: 14 messages
Resolved React
Pass-through function parameter causing type error 20 messages
Open Deno
Allow function assignment to only be non-async 9 messages
Resolved
How to constrain a value based on a key 4 messages
Open React
How can I solve this type error 6 messages
Resolved
Object keys to tuple, how to? 63 messages
Open
Static types disapeared when I copy pasted a TS project inside of a monorepo. 75 messages
Open Vue
Create type from generated Array 7 messages
Open
Type to transform a method into a function field and vice-versa 5 messages
Resolved
Use `string` type as `interface` key 21 messages
Resolved
How to mutate typed object? 38 messages
Open
help with zod types and z.object 67 messages
Open
Importing css from `node_modules` 54 messages
Resolved
"unknown" accepted while it should not 4 messages
Resolved
Parsing error: DeprecationError: 'originalKeywordKind' has been deprecated since v5.0.0 2 messages
Open Node
More precise type definitions for global interfaces and methods 21 messages
Open
Express: Router.use() requires a middleware function but got a Object 28 messages
Open Node
How would I specify a type that must be a function which can have any parameters? 54 messages
Open
Typescript won't allow me to assert a type? 8 messages
Open
How to make types available without imports? 13 messages
Open
TypeScript tree-shaking an import which I can't replicate 19 messages
Open
Are generics generic? 8 messages
Resolved
Infering type on a conditional component 2 messages
Open React
Why does Typescript say "Cannot find name 'text'." although it is definitely there? 3 messages
Open