mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* [sparkly] introduce typings * [sparkly] restrict input type to allow all types from examples but not more than that
17 lines
462 B
TypeScript
17 lines
462 B
TypeScript
// Type definitions for sparkly 3.1
|
|
// Project: https://github.com/sindresorhus/sparkly
|
|
// Definitions by: BendingBender <https://github.com/BendingBender>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = sparkly;
|
|
|
|
declare function sparkly(numbers: Array<number | ''>, options?: sparkly.Options): string;
|
|
|
|
declare namespace sparkly {
|
|
interface Options {
|
|
min?: number;
|
|
max?: number;
|
|
style?: 'fire';
|
|
}
|
|
}
|