UNPKG

tell-me-when

Version:
12 lines (10 loc) 212 B
export class ParseError extends Error { name = 'ParseError' from: number to: number constructor(message: string, from: number, to = from) { super(message) this.from = from this.to = to } }