UNPKG

barrelize

Version:

Automatically generating index (barrel) files

42 lines (41 loc) 1.25 kB
import { BarrelConfig } from '../index.ts'; export type Config = { /** * Path to the JSON schema file that will be used for configuration validation * @default undefined */ $schema?: string; /** * Whether to add spaces between brackets in export statements * @default true */ bracketSpacing?: boolean; /** * Whether to use single quotes instead of double quotes for exports * @default true */ singleQuote?: boolean; /** * Whether to append semicolons to export statements * @default true */ semi?: boolean; /** * Whether to append a newline character at the end of generated files * @default true */ insertFinalNewline?: boolean; /** * List of barrel configurations * @default [{ * root: 'src', * name: 'index.ts', * include: ['**\/*.ts'], * exclude: ['**\/*.test.ts'], * }] */ barrels: BarrelConfig[]; }; export declare const INITIAL_CONFIG: Config; export declare const DEFAULT_CONFIG: Required<BarrelConfig>; export declare const validateConfig: ((input: unknown) => import('typia').IValidation<Config>) & import('@standard-schema/spec').StandardSchemaV1<unknown, Config>;