A work-in-progress SQL parser written in TypeScript
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

error.ts 280B

12345678910111213
  1. export default class Error {
  2. public message: string;
  3. public line: number;
  4. constructor(message: string, line: number) {
  5. this.message = message;
  6. this.line = line;
  7. }
  8. }
  9. export const isError = (obj: any): obj is Error => {
  10. return obj && obj.message && obj.line;
  11. };