src/types.ts
Interface has only a call signature — use type ObjectType<t> = new () => T;</t>
instead. Open
Open
new (): T;
- Read upRead up
- Exclude checks
Rule: callable-types
An interface or literal type with just a call signature can be written as a function type.
Rationale
style
Notes
- TypeScript Only
- Has Fix
Config
Not configurable.
For more information see this page.