0.2.0 • Published 3 months ago

@fast-check/expect-type v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@fast-check/expect-type

Make sure your types are the ones you expect (similar to tsd)


Easy to use

This package performs compilation time checks only. Running the check functions at runtime is a no-op.

import { expectType, expectTypeAssignable } from '@fast-check/expect-type';
// your code or you own imports

expectType<number>()(f(1, 2), 'expect the output of f when passed 1 and 2 to be number');
expectTypeAssignable<number>()(f(1, 2), 'expect the output of f when passed 1 and 2 to be assignable to number');
0.2.0

3 months ago

0.1.0

6 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

2 years ago