diff --git a/src/guards.test.ts b/src/guards.test.ts index 765addc..ff92140 100644 --- a/src/guards.test.ts +++ b/src/guards.test.ts @@ -40,9 +40,9 @@ describe("Guard", () => { } }; + //@ts-ignore const dent: User = { name: "Arthur Dent", - //@ts-ignore address: null }; diff --git a/src/types.ts b/src/types.ts index d87f2a2..b07f252 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,13 +1,9 @@ export interface ObjectTypeGuard { - (x: ValueMap): x is T; -} - -export interface IterableTypeGuard { - (xs: Iterable): xs is Iterable; + (x: any): x is T; } export interface ArrayTypeGuard { - (xs: T[]): xs is T[]; + (xs: any[]): xs is T[]; } export interface ValueTypeGuard {