Files
med-notes/.pnpm-store/v10/files/cc/6bcb6d07bb806b85cb148378b50c04ac4c93d5639a2ae9f3dcfa758d3fb447afc7df7d9b4e9531133cf4482a503fc5020b13d9cd9303e6a89555687b31ec1b
2025-05-09 05:30:08 +02:00

32 lines
722 B
Plaintext

/**
* @fileoverview Types for this package.
*/
import type { Linter } from "eslint";
/**
* Infinite array type.
*/
export type InfiniteArray<T> = T | InfiniteArray<T>[];
/**
* The type of array element in the `extends` property after flattening.
*/
export type SimpleExtendsElement = string | Linter.Config;
/**
* The type of array element in the `extends` property before flattening.
*/
export type ExtendsElement =
| SimpleExtendsElement
| InfiniteArray<Linter.Config>;
/**
* Config with extends. Valid only inside of `defineConfig()`.
*/
export interface ConfigWithExtends extends Linter.Config {
extends?: ExtendsElement[];
}
export type ConfigWithExtendsArray = InfiniteArray<ConfigWithExtends>[];