UNPKG

kt-extendscript-builder

Version:

Vite based builder for transpile TypeScript to ExtendScript

29 lines (28 loc) 978 B
import { BuildOptions } from '../../types'; /** * Class responsible for resolving preset build options. * * This class maintains a collection of named preset configurations that can be * applied to build options. Each preset is a partial specification of BuildOptions * that can be retrieved by name. */ export declare class OptionsPresetsResolver { /** * Map of preset names to their corresponding partial build options */ private presets; /** * Initializes a new instance of the OptionsPresetsResolver class * with predefined presets. */ constructor(); /** * Retrieves a preset by name * * @param presetName - The name of the preset to retrieve * @returns The partial build options corresponding to the requested preset * @throws Error if the specified preset name is not found */ resolvePreset(presetName: string): Partial<BuildOptions>; getUserPresets(userConfigPath: string): void; }