// Type definitions for fill-range 7.0 // Project: https://github.com/jonschlinkert/fill-range // Definitions by: Richie Bendall // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace fill { interface Options { step?: number; strictRanges?: boolean; stringify?: boolean; toRegex?: boolean; transform?: (value: ValueType) => TransformValueType; } } type FilledArray = ValueType extends TransformValueType ? ValueType[] : TransformValueType[]; declare function fill< ValueType = string | number, TransformValueType = unknown >( start: ValueType, end?: ValueType | null, step?: number, options?: fill.Options ): FilledArray; declare function fill< ValueType = string | number, TransformValueType = unknown >( start: ValueType, end?: ValueType | null, transformOrOptions?: fill.Options['transform'] | fill.Options ): FilledArray; export = fill;