mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
208 B
TypeScript
9 lines
208 B
TypeScript
import diff = require('arr-diff');
|
|
|
|
const a = ['a', 'b', 'c', 'd'];
|
|
const b = [1, 2];
|
|
|
|
diff(['a']); // $ExpectType string[]
|
|
diff(['a'], [1]); // $ExpectType string[]
|
|
diff([1], ['a']); // $ExpectType number[]
|