mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
9 lines
246 B
TypeScript
9 lines
246 B
TypeScript
import arrayMove = require('array-move');
|
|
|
|
const input = ['a', 'b', 'c'];
|
|
const input2 = [1, 2, 3];
|
|
|
|
arrayMove(input, 1, 2); // $ExpectType string[]
|
|
arrayMove(input2, 1, 2); // $ExpectType number[]
|
|
arrayMove.mut(input, 1, 2); // $ExpectType void
|