devsite/node_modules/liquidjs/dist/template/hash.d.ts

18 lines
572 B
TypeScript
Raw Normal View History

2024-07-08 01:49:38 +00:00
import { Context } from '../context/context';
import { Token } from '../tokens/token';
type HashValueTokens = Record<string, Token | undefined>;
/**
* Key-Value Pairs Representing Tag Arguments
* Example:
* For the markup `, foo:'bar', coo:2 reversed %}`,
* hash['foo'] === 'bar'
* hash['coo'] === 2
* hash['reversed'] === undefined
*/
export declare class Hash {
hash: HashValueTokens;
constructor(markup: string, jekyllStyle?: boolean);
render(ctx: Context): Generator<unknown, Record<string, any>, unknown>;
}
export {};