spec.ts
v1.1.3
Published
Write tests for your types!
Downloads
678
Readme
spec.ts
Write tests for your types!
import { assert, _ } from "spec.ts";
// Assert two expressions have the same exact type
assert(foo, bar);
// Assert the exact type of an expression
assert(foo, _ as ExpectedType);