UNPKG

gentyl

Version:

A Generator That You'll Love

29 lines (28 loc) 853 B
declare namespace Gentyl { enum ASSOCMODE { INHERIT = 0, SHARE = 1, TRACK = 2, } interface ContextLayer { source: ResolutionContext; mode: ASSOCMODE; } class ResolutionContext { private host; private mode; ownProperties: any; propertyLayerMap: any; closed: boolean; constructor(host: ResolutionNode, hostContext: any, mode: string); prepare(): void; extract(): any; parseMode(modestr: string): ContextLayer[]; addOwnProperty(name: string, defaultValue: any): void; setItem(key: any, data: any): void; getItem(key: any): any; getItemSource(key: any): ResolutionContext; addInherentLayer(layerctx: ResolutionContext): void; addSourceLayer(layer: ContextLayer): void; } }