initial transfer

This commit is contained in:
Benjamin Diedrichsen
2026-07-27 13:09:00 +02:00
parent 9f25d48dc2
commit 736c01216a
191 changed files with 17622 additions and 136 deletions
+20
View File
@@ -0,0 +1,20 @@
/**
* Environment variable configuration
*/
export type TVariables = Record<string, string | number | boolean>;
export declare namespace Variables {
type ArtefactId = string;
type Scope = 'defaults' | 'prompts' | 'params';
}
export declare class Variables {
readonly global: TVariables;
/** @summary env as configured in cube or session script */
defaults: Record<Variables.ArtefactId, TVariables>;
/** @summary env as configured via prompts */
prompts: Record<Variables.ArtefactId, TVariables>;
/** @summary env as handed via params (on hook calls) */
params: Record<Variables.ArtefactId, TVariables>;
constructor(global?: TVariables);
assign(artefactId: Variables.ArtefactId, scope: Variables.Scope, values?: TVariables): void;
get(artefactId: Variables.ArtefactId, scope?: Variables.Scope): TVariables;
}