refactor: strictly typed

This commit is contained in:
harttle
2019-02-23 00:49:54 +08:00
parent 51f7e66f60
commit 5b6100d12b
86 changed files with 2630 additions and 2590 deletions
+2 -2
View File
@@ -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
}