Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

spec.ts

aleclarson6.1kMIT1.1.3TypeScript support: included

Write tests for your types!

readme

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