UNPKG

recipe-ts-runtime

Version:

TypeScript run-time library for the Recipe framework

23 lines (22 loc) 755 B
export declare class Cake { static readonly SEPARATOR = "."; private entries; private readonly prefixStack; static key(...subKeys: string[]): string; private static validateKey; constructor(other?: Cake); publish(key: string, value: any): void; inNamespace(key: string, runnable: () => void): void; private getSubKeysAndValidateFullKey; get<T>(...key: Array<string | null>): T; private getPrefixWithSeparator; getPublishedKeyForValue(value: any, fullyQualified: boolean): string; getNamespace(): string; hasContext(): boolean; getContext<T>(): T; getOrGetContext<T>(...key: Array<string | null>): T; toJSON(): { [key: string]: any; }; static fromJSON(json: any): Cake; }