mirror of
https://github.com/chenasraf/DefinitelyTyped.git
synced 2026-05-18 01:49:01 +00:00
6 lines
224 B
TypeScript
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[]
|