Files
liquidjs/dist/scope/scope.d.ts
T
2019-02-19 23:55:38 +08:00

19 lines
652 B
TypeScript

import { NormalizedOptions } from '../liquid-options';
import BlockMode from './block-mode';
export default class Scope {
opts: NormalizedOptions;
contexts: Array<object>;
blocks: object;
blockMode: BlockMode;
constructor(ctx?: object, opts?: NormalizedOptions);
getAll(): object;
get(path: string): any;
set(path: string, v: any): void;
unshift(ctx: object): number;
push(ctx: object): number;
pop(ctx?: object): object;
findContextFor(key: string, filter?: ((conttext: object) => boolean)): object;
readProperty(obj: any, key: any): any;
propertyAccessSeq(str: any): any[];
}