Skip to content

Commit

Permalink
Test the case without any keys
Browse files Browse the repository at this point in the history
  • Loading branch information
CvX committed Mar 13, 2019
1 parent 7cd2c33 commit c662e89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/require-at-least-one.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import {expectType} from 'tsd-check';
import {RequireAtLeastOne} from '..';

type SystemMessages = {
Expand All @@ -20,3 +21,6 @@ test([
// {},
// {default: 'hello'},
]);

declare const atLeastOneWithoutKeys: RequireAtLeastOne<{a: number; b: number}>;
expectType<{a: number, b?: number} | {a?:number, b: number}>(atLeastOneWithoutKeys);

0 comments on commit c662e89

Please sign in to comment.