mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 12:20:40 -07:00
style: introduce @typescript-eslint/recommended
This commit is contained in:
@@ -3,12 +3,12 @@ import ITemplate from '../template/itemplate'
|
||||
import HTMLToken from '../parser/html-token'
|
||||
|
||||
export default class extends Template<HTMLToken> implements ITemplate {
|
||||
str: string
|
||||
constructor (token: HTMLToken) {
|
||||
private str: string
|
||||
public constructor (token: HTMLToken) {
|
||||
super(token)
|
||||
this.str = token.value
|
||||
}
|
||||
async render (): Promise<string> {
|
||||
public async render (): Promise<string> {
|
||||
return this.str
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user