You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
937 B
42 lines
937 B
/** |
|
* @template T |
|
* @param {T} value |
|
* @return { |
|
T extends (null | undefined) |
|
? [] |
|
: T extends string |
|
? [string] |
|
: T extends readonly unknown[] |
|
? T |
|
: T extends Iterable<infer T> |
|
? T[] |
|
: [T] |
|
} |
|
*/ |
|
export function arrify<T>( |
|
value: T |
|
): T extends null | undefined |
|
? [] |
|
: T extends string |
|
? [string] |
|
: T extends readonly unknown[] |
|
? T |
|
: T extends Iterable<infer T_1> |
|
? T_1[] |
|
: [T]; |
|
/** |
|
* @param {string|string[]} files |
|
* @param {string} context |
|
* @returns {string[]} |
|
*/ |
|
export function parseFiles(files: string | string[], context: string): string[]; |
|
/** |
|
* @param {string|string[]} patterns |
|
* @param {string|string[]} extensions |
|
* @returns {string[]} |
|
*/ |
|
export function parseFoldersToGlobs( |
|
patterns: string | string[], |
|
extensions?: string | string[] |
|
): string[]; |
|
export function jsonStringifyReplacerSortKeys(_: string, value: any): any;
|
|
|