packages/compiler/src/code-generation/per-file/webassembly.d.ts
Interface has only a call signature — use type WebAssemblyMemoryConstructor = new (memoryDescriptor: { initial: number, maximum?: number }) => WebAssemblyMemory;
instead. Open
Open
new (memoryDescriptor: { initial: number, maximum?: number }): WebAssemblyMemory;
- 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.