mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 21:00:40 -07:00
refactor: strictly typed
This commit is contained in:
+4
-3
@@ -1,15 +1,16 @@
|
||||
export default class Token {
|
||||
type: string
|
||||
type: string = 'notset'
|
||||
line: number
|
||||
col: number
|
||||
raw: string
|
||||
input: string
|
||||
file: string
|
||||
file?: string
|
||||
value: string
|
||||
constructor (raw, col, input, file, line) {
|
||||
constructor (raw: string, input: string, line: number, col: number, file?: string) {
|
||||
this.col = col
|
||||
this.line = line
|
||||
this.raw = raw
|
||||
this.value = raw
|
||||
this.input = input
|
||||
this.file = file
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user