mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-15 12:20:40 -07:00
refactor: strictly typed
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import Token from './token'
|
||||
|
||||
export default class HTMLToken extends Token {
|
||||
constructor (str, begin, input, file, line) {
|
||||
super(str, begin, input, file, line)
|
||||
constructor (str: string, input: string, line: number, col: number, file?: string) {
|
||||
super(str, input, line, col, file)
|
||||
this.type = 'html'
|
||||
this.value = str
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user