mirror of
https://github.com/harttle/liquidjs.git
synced 2026-09-16 12:50:38 -07:00
BREAKING CHANGE: remove default export, now should be used like import
{Liquid} from 'liquidjs'
22 lines
588 B
TypeScript
22 lines
588 B
TypeScript
import { DelimitedToken } from './delimited-token'
|
|
import { Token } from './token'
|
|
import { NormalizedFullOptions } from '../liquid-options'
|
|
|
|
export class OutputToken extends DelimitedToken {
|
|
public constructor (
|
|
raw: string,
|
|
value: string,
|
|
input: string,
|
|
line: number,
|
|
pos: number,
|
|
options: NormalizedFullOptions,
|
|
file?: string
|
|
) {
|
|
super(raw, value, input, line, pos, options.trimOutputLeft, options.trimOutputRight, file)
|
|
this.type = 'output'
|
|
}
|
|
public static is (token: Token): token is OutputToken {
|
|
return token.type === 'output'
|
|
}
|
|
}
|