DefinitelyTyped/types/repeat-element/index.d.ts
Adam Zerella 4ca1f9a325 [repeat-element] Add typing for repeat-element (#33503)
* Added type defs for repeat-element

* Updated export type
2019-03-06 10:00:35 -08:00

13 lines
414 B
TypeScript

// Type definitions for repeat-element 1.1
// Project: https://github.com/jonschlinkert/repeat-element
// Definitions by: Adam Zerella <https://github.com/adamzerella>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 3.0
/**
* Create an array by repeating the given value n times.
*/
declare function repeat(element: unknown, num: number): unknown[];
export = repeat;