DefinitelyTyped/types/arr-union/arr-union-tests.ts
2017-11-12 11:54:03 +03:00

8 lines
153 B
TypeScript

import union = require('arr-union');
// $ExpectType string[]
union(['a'], ['b', 'c'], ['d', 'e', 'f']);
// $ExpectType number[]
union([1, 1], [2, 3]);