Skip to content

Commit

Permalink
chore: create type tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maraisr committed Jun 28, 2023
1 parent ae4ec49 commit e12a38f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/index.types.ts
@@ -0,0 +1,9 @@
import { identify } from 'object-identity';

declare function assert<T>(thing: T): void;

assert<string>(identify('string'));
assert<string>(identify(1));
assert<string>(identify([]));
assert<string>(identify({}));
assert<string>(identify(new Error()));

0 comments on commit e12a38f

Please sign in to comment.