Skip to content

Commit 048e89c

Browse files
committed
fix: generate TS types from validators
1 parent 6d17f5a commit 048e89c

File tree

9 files changed

+321
-390
lines changed

9 files changed

+321
-390
lines changed

src/compareTypes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { AnyType, Type } from './types'
1+
import Type from './types/Type'
2+
import AnyType from './types/AnyType'
23

34
/**
45
* Given two types, A and B, compare them and return either -1, 0, or 1:

src/errorMessages.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const errorMessages = {
1717
ERR_EXPECT_INSTANCEOF: 'must be an instance of $0',
1818
ERR_EXPECT_KEY_TYPE: 'keys must be: $0',
1919
ERR_EXPECT_NULL: 'must be null',
20+
ERR_EXPECT_UNDEFINED: 'must be undefined',
2021
ERR_EXPECT_NUMBER: 'must be a number',
2122
ERR_EXPECT_OBJECT: 'must be an object',
2223
ERR_EXPECT_PROMISE: 'must be a promise of $0',

0 commit comments

Comments
 (0)