@types/repeat-element
Version:
TypeScript definitions for repeat-element
33 lines (25 loc) • 1.08 kB
Markdown
# Installation
> `npm install --save @types/repeat-element`
# Summary
This package contains type definitions for repeat-element (https://github.com/jonschlinkert/repeat-element).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/repeat-element.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/repeat-element/index.d.ts)
````ts
// Type definitions for repeat-element 1.1
// Project: https://github.com/jonschlinkert/repeat-element
// Definitions by: DefinitelyTyped <https://github.com/DefinitelyTyped>
// 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;
````
### Additional Details
* Last updated: Thu, 23 Dec 2021 23:35:45 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by [DefinitelyTyped](https://github.com/DefinitelyTyped).