Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Latest commit

 

History

History
18 lines (12 loc) · 602 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 602 Bytes

spec.ts

npm Build Status

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);