Files
memecoin-botV2/.pnpm-store/v10/files/3c/b7a4dae18b461b40d3b1f043a23645092a695921bd53bda3d4ed3b18f9e784f3170f46476de43da58a441c97f472391ef187bc821f7844e523f1c28f6272da

42 lines
1.0 KiB
Plaintext

/**
* @fileoverview Types for this package.
*/
import type { ConfigObject } from "@eslint/core";
/** @deprecated Use `ConfigObject` instead. */
export type Config = ConfigObject;
/**
* Infinite array type.
*/
export type InfiniteArray<T> = T | InfiniteArray<T>[];
/**
* A config object that may appear inside of `extends`.
* `basePath` and nested `extends` are not allowed on extension config objects.
*/
export type ExtensionConfigObject = Omit<ConfigObject, "basePath"> & {
extends?: never;
};
/**
* The type of array element in the `extends` property after flattening.
*/
export type SimpleExtendsElement = string | ExtensionConfigObject;
/**
* The type of array element in the `extends` property before flattening.
*/
export type ExtendsElement =
SimpleExtendsElement | InfiniteArray<ExtensionConfigObject>;
/**
* Config with extends. Valid only inside of `defineConfig()`.
*/
export interface ConfigWithExtends extends ConfigObject {
extends?: ExtendsElement[];
}
export type ConfigWithExtendsArray = InfiniteArray<ConfigWithExtends>[];