diff --git a/src/BsConfig.ts b/src/BsConfig.ts index 51c6ba995..8c1dd6e76 100644 --- a/src/BsConfig.ts +++ b/src/BsConfig.ts @@ -1,5 +1,19 @@ import type { LogLevel } from './Logger'; +export interface BsConfigFileEntry { + src: string | string[]; + dest?: string; +} + +export type BsConfigFileEntryOrShortcut = string | BsConfigFileEntry; + +export interface BsConfigDiagnosticFilter { + src?: string; + codes?: Array; +} + +export type BsConfigDiagnosticFilterOrShortcut = string | number | BsConfigDiagnosticFilter; + export interface BsConfig { /** * The inheritance tree for all parent configs used to generate this config. Do not set this, it is computed. @@ -33,7 +47,7 @@ export interface BsConfig { * If using the {src;dest;} format, you can specify a different destination directory * for the matched files in src. */ - files?: Array; + files?: Array; /** * The path where the output zip file should be placed. @@ -120,7 +134,7 @@ export interface BsConfig { /** * A list of filters used to exclude diagnostics from the output */ - diagnosticFilters?: Array; + diagnosticFilters?: Array; /** * Specify what diagnostic types should be printed to the console. Defaults to 'warn'