mirror of
https://github.com/harttle/liquidjs.git
synced 2026-10-03 09:05:14 -07:00
chore: fix types
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"docs": "rm docs -rf && typedoc --gitRevision master --out docs src && cp -r website/. docs/",
|
"docs": "rm docs -rf && typedoc --gitRevision master --out docs src && cp -r website/. docs/",
|
||||||
|
"check": "npm run lint && npm test && npm run docs && git checkout origin/master docs",
|
||||||
"unit": "mocha \"test/unit/**/*.ts\"",
|
"unit": "mocha \"test/unit/**/*.ts\"",
|
||||||
"integration": "mocha \"test/integration/**/*.ts\"",
|
"integration": "mocha \"test/integration/**/*.ts\"",
|
||||||
"e2e": "npm run build && mocha \"test/e2e/**/*.ts\"",
|
"e2e": "npm run build && mocha \"test/e2e/**/*.ts\"",
|
||||||
|
|||||||
+2
-2
@@ -34,8 +34,8 @@ export class Liquid {
|
|||||||
this.filters = new FilterMap(this.options.strictFilters)
|
this.filters = new FilterMap(this.options.strictFilters)
|
||||||
this.tags = new TagMap()
|
this.tags = new TagMap()
|
||||||
|
|
||||||
forOwn(builtinTags, (conf, name) => this.registerTag(snakeCase(name), conf))
|
forOwn(builtinTags, (conf: TagImplOptions, name: string) => this.registerTag(snakeCase(name), conf))
|
||||||
forOwn(builtinFilters, (handler, name) => this.registerFilter(snakeCase(name), handler))
|
forOwn(builtinFilters, (handler: FilterImplOptions, name: string) => this.registerFilter(snakeCase(name), handler))
|
||||||
}
|
}
|
||||||
public parse (html: string, filepath?: string): Template[] {
|
public parse (html: string, filepath?: string): Template[] {
|
||||||
const tokenizer = new Tokenizer(html, filepath)
|
const tokenizer = new Tokenizer(html, filepath)
|
||||||
|
|||||||
Reference in New Issue
Block a user