Files
DefinitelyTyped/types/array-bounds/array-bounds-tests.ts
2022-11-14 08:54:49 -08:00

6 lines
224 B
TypeScript

import getBounds = require('array-bounds');
getBounds([0, 25, 50, 75, 100]); // $ExpectType number[]
getBounds([0, 25, 50, 75, 100], 2); // $ExpectType number[]
getBounds({ 0: 1, 1: 2, length: 2 }); // $ExpectType number[]