dropkiq
Version:
Liquid Expressions Simplified
22 lines (21 loc) • 725 B
TypeScript
import { NormalizedFullOptions } from '../liquid-options';
import { Scope } from './scope';
export declare class Context {
private scopes;
private registers;
environments: Scope;
sync: boolean;
opts: NormalizedFullOptions;
constructor(env?: object, opts?: NormalizedFullOptions, sync?: boolean);
getRegister(key: string, defaultValue?: {}): any;
setRegister(key: string, value: any): any;
getAll(): Scope;
get(path: string): object;
getFromScope(scope: object, paths: string[] | string): object;
push(ctx: object): number;
pop(): Scope;
front(): Scope;
private findScope;
private parseProp;
}
export declare function readProperty(obj: Scope, key: string): any;