| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/share/nodejs/@types/fill-range/ |
Upload File : |
// Type definitions for fill-range 7.0
// Project: https://github.com/jonschlinkert/fill-range
// Definitions by: Richie Bendall <https://github.com/Richienb>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace fill {
interface Options<ValueType, TransformValueType> {
step?: number;
strictRanges?: boolean;
stringify?: boolean;
toRegex?: boolean;
transform?: (value: ValueType) => TransformValueType;
}
}
type FilledArray<ValueType, TransformValueType> = ValueType extends TransformValueType ? ValueType[] : TransformValueType[];
declare function fill<
ValueType = string | number,
TransformValueType = unknown
>(
start: ValueType,
end?: ValueType | null,
step?: number,
options?: fill.Options<ValueType, TransformValueType>
): FilledArray<ValueType, TransformValueType>;
declare function fill<
ValueType = string | number,
TransformValueType = unknown
>(
start: ValueType,
end?: ValueType | null,
transformOrOptions?: fill.Options<ValueType, TransformValueType>['transform'] | fill.Options<ValueType, TransformValueType>
): FilledArray<ValueType, TransformValueType>;
export = fill;