chore(TypeScript): fix linting and generate .d.ts

This commit is contained in:
harttle
2019-02-17 18:20:04 +08:00
parent 7ee87008c7
commit fc9ebdb90f
79 changed files with 809 additions and 820 deletions
+6 -6
View File
@@ -1,12 +1,12 @@
import Token from './token'
export default class DelimitedToken extends Token {
trim_left: boolean
trim_right: boolean
constructor(raw, pos, input, file, line) {
trimLeft: boolean
trimRight: boolean
constructor (raw, pos, input, file, line) {
super(raw, pos, input, file, line)
this.trim_left = raw[2] === '-'
this.trim_right = raw[raw.length - 3] === '-'
this.value = raw.slice(this.trim_left ? 3 : 2, this.trim_right ? -3 : -2).trim()
this.trimLeft = raw[2] === '-'
this.trimRight = raw[raw.length - 3] === '-'
this.value = raw.slice(this.trimLeft ? 3 : 2, this.trimRight ? -3 : -2).trim()
}
}