mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 12:20:40 -07:00
19 lines
652 B
TypeScript
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[];
|
|
}
|