Files
med-notes/.pnpm-store/v10/files/42/36035595d6852ff0c1febc156bc2be83fb792d0f4ef7827d28fbcb8cda96c472e4222cd90a4fa4bdf4e897f74a9cfcdbc5467bf7745b1b7d82b1a8eebff98c
2025-05-09 05:30:08 +02:00

24 lines
715 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>[];