packages/expect-more/src/lib/curry1.ts
Type literal has only a call signature — use (a: unknown) => a is R
instead. Open
Open
(a: unknown): a is R;
- 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.