DefinitelyTyped/types/sparkly/index.d.ts
Dimitri Benin 42e60e5283 [sparkly] introduce typings (#18291)
* [sparkly] introduce typings

* [sparkly] restrict input type to allow all types from examples but not more than that
2017-07-22 02:22:57 -07:00

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';
}
}