mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 14:00:39 -07:00
chore(TypeScript): fix linting and generate .d.ts
This commit is contained in:
@@ -3,14 +3,15 @@ import { stringify } from 'src/util/underscore'
|
||||
import Template from 'src/template/template'
|
||||
import ITemplate from 'src/template/itemplate'
|
||||
import Scope from 'src/scope/scope'
|
||||
import OutputToken from 'src/parser/output-token'
|
||||
|
||||
export default class Output extends Template implements ITemplate {
|
||||
value: Value
|
||||
constructor(token, strict_filters?) {
|
||||
constructor (token: OutputToken, strictFilters?: boolean) {
|
||||
super(token)
|
||||
this.value = new Value(token.value, strict_filters)
|
||||
this.value = new Value(token.value, strictFilters)
|
||||
}
|
||||
async render(scope: Scope) {
|
||||
async render (scope: Scope): Promise<string> {
|
||||
const html = await this.value.value(scope)
|
||||
return stringify(html)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user