Skip to content

Commit

Permalink
docs: generate documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
andnp committed Apr 21, 2019
1 parent 76150c1 commit 42cc8c3
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -592,15 +592,13 @@ test('Union of Strings', t => {
});

test('Union of Objects', t => {
type got = UnionToIntersection< { a: 0 } |
{ b: 1 } |
{ c: 2 }>;

type expected = {
a: 0
b: 1
c: 2
};
type got = UnionToIntersection<{ a: 0 } | { b: 1 } | { c: 2 }>;

type expected = {
a: 0,
b: 1,
c: 2,
};

assert<got, expected>(t);
});
Expand Down

0 comments on commit 42cc8c3

Please sign in to comment.