UNPKG

@gecut/utilities

Version:

The ultimate utility toolkit from Gecut Company, crafted with TypeScript for optimal speed and efficiency. Designed to boost productivity with a suite of fast and optimized tools.

14 lines (13 loc) 499 B
type VariableType = string | number | boolean; type VariablesTypeName = Record<string, VariableType>; export declare class GecutEnvVM<T extends VariablesTypeName> { constructor(appName: string, variables: T); appName: string; private variables; private variablesName; get<K extends keyof T>(variableName: K): T[K]; set<K extends keyof T>(variableName: K, value: T[K] | ((old: T[K]) => T[K])): void; remove(variableName: keyof T): void; } export {}; //# sourceMappingURL=envvm.d.ts.map