diff --git a/src/passes/generate-ts.js b/src/passes/generate-ts.js index dafcfb3..39524ac 100644 --- a/src/passes/generate-ts.js +++ b/src/passes/generate-ts.js @@ -806,7 +806,7 @@ function generateTS(ast, options) { " description: string;", "}", "", - "type Expectation = ILiteralExpectation | IClassExpectation | IAnyExpectation | IEndExpectation | IOtherExpectation;", + "export type Expectation = ILiteralExpectation | IClassExpectation | IAnyExpectation | IEndExpectation | IOtherExpectation;", "", "export class SyntaxError extends Error {", " public static buildMessage(expected: Expectation[], found: string | null) {",