Skip to content

Commit

Permalink
types: add ParseError type (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Nov 9, 2023
1 parent 605184a commit 39d8ae3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lexer.ts
Expand Up @@ -139,6 +139,10 @@ export interface ExportSpecifier {
readonly le: number;
}

export interface ParseError extends Error {
idx: number
}

const isLE = new Uint8Array(new Uint16Array([1]).buffer)[0] === 1;

/**
Expand Down

0 comments on commit 39d8ae3

Please sign in to comment.