Skip to content

UnbearableBear/spec.ts

 
 

Repository files navigation

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

About

Write tests for your types!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 56.8%
  • TypeScript 43.2%