Files
memecoin-botV2/.pnpm-store/v10/files/d8/66b3ee356420d1613faae6725024a890e0e1552791d35807dfc6921d0689555ed6010ae23e8ccc3b3ef4cfb36e49e9e80d06391dbd1f7c4b9bd671a46c2708

47 lines
861 B
Plaintext

/**
* @fileoverview Types for the config-array package.
* @author Nicholas C. Zakas
*/
/**
* A file matcher used in `files` and `ignores`.
*/
export type FileMatcher = string | ((filePath: string) => boolean);
/**
* An entry in a config's `files` array.
*
* A subarray means all matchers must match.
*/
export type FilesMatcher = FileMatcher | FileMatcher[];
/**
* The config types allowed in the `extraConfigTypes` option.
*/
export type ExtraConfigType = "array" | "function";
export interface ConfigObject {
/**
* The base path for files and ignores.
*/
basePath?: string;
/**
* The files to include.
*/
files?: FilesMatcher[];
/**
* The files to exclude.
*/
ignores?: FileMatcher[];
/**
* The name of the config object.
*/
name?: string;
// may also have any number of other properties
[key: string]: unknown;
}