TS4082TS4082 — Default Export Needs Type Annotation for Declaration Emit
The default export requires a type annotation when generating declaration files.
TS1064The Promise constructor must be called with the new keyword.
You are calling Promise as a function without new. The Promise constructor requires new Promise(...) syntax to create a promise instance.
Use new Promise((resolve, reject) => { ... }) instead of calling Promise directly. Alternatively, use Promise.resolve() or Promise.reject() for simple cases.
TS4082The default export requires a type annotation when generating declaration files.
TS18048TypeScript warns that a value could be undefined and you are using it without checking.
TS2698The spread operator (...) is used on a value that may not be an object type.
TS2503TypeScript cannot find a namespace with the specified name.
TS1109TypeScript expected an expression but found a token that cannot start an expression.
TS2571You are trying to use a value of type unknown without first narrowing its type.