Assertions require every name in the call target to be declared with an explicit type annotation
I am trying to add your library to my benchmark repo, and I am getting the following type error.
See: https://github.com/moltar/typescript-runtime-type-benchmarks/pull/408
const dataType: (x: unknown) => asserts x is {
number: number;
negNumber: number;
maxNumber: number;
string: string;
longString: string;
boolean: boolean;
deeplyNested: {
foo: string;
num: number;
bool: boolean;
};
}
Assertions require every name in the call target to be declared with an explicit type annotation.ts(2775)
narrows.ts(4, 7): 'dataType' needs an explicit type annotation.
Any ideas?
Thanks!