mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-18 22:10:41 -07:00
chore(TypeScript): fix linting and generate .d.ts
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user