fix: type compatible with v9 tag definition, support Context as scope in various render APIs, #570

This commit is contained in:
Jun Yang
2022-12-18 12:48:06 +08:00
parent 7526d4062d
commit fb6a9f8717
5 changed files with 55 additions and 20 deletions
+5 -1
View File
@@ -1,6 +1,6 @@
import { assert, isArray, isString, isFunction } from './util'
import { LRU, LiquidCache } from './cache'
import { FS } from './fs/fs'
import { FS, LookupType } from './fs'
import * as fs from './fs/node'
import { defaultOperators, Operators } from './render'
import { json } from './filters/misc'
@@ -91,6 +91,10 @@ export interface RenderOptions {
ownPropertyOnly?: boolean;
}
export interface RenderFileOptions extends RenderOptions {
lookupType?: LookupType;
}
interface NormalizedOptions extends LiquidOptions {
root?: string[];
partials?: string[];