UNPKG

@yuxilabs/gptp-core

Version:

Core validation, formatting and execution logic for the GPTP file format.

15 lines 537 B
/** * interpolation.ts * Simple variable interpolation utility for GPTP string templates. * Replaces {{variable}} with values from context. */ /** * Interpolates a single string. */ export declare function interpolate(template: string, context: Record<string, unknown>): string; /** * Recursively interpolates values inside strings, arrays, and objects. * This is the full-fat version. */ export declare function interpolateVariables<T>(input: T, context: Record<string, unknown>): T; //# sourceMappingURL=interpolation.d.ts.map