summaryrefslogtreecommitdiff
path: root/node_modules/liquidjs/dist/template/hash.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/liquidjs/dist/template/hash.d.ts')
-rw-r--r--node_modules/liquidjs/dist/template/hash.d.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/liquidjs/dist/template/hash.d.ts b/node_modules/liquidjs/dist/template/hash.d.ts
new file mode 100644
index 0000000..b50e404
--- /dev/null
+++ b/node_modules/liquidjs/dist/template/hash.d.ts
@@ -0,0 +1,18 @@
+import { Context } from '../context/context';
+import { Tokenizer } from '../parser/tokenizer';
+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(input: string | Tokenizer, jekyllStyle?: boolean | string);
+ render(ctx: Context): Generator<unknown, Record<string, any>, unknown>;
+}
+export {};