diff --git a/src/passes/generate-ts.js b/src/passes/generate-ts.js index dafcfb3..586193d 100644 --- a/src/passes/generate-ts.js +++ b/src/passes/generate-ts.js @@ -778,35 +778,35 @@ function generateTS(ast, options) { " end: IFilePosition;", "}", "", - "interface ILiteralExpectation {", + "export interface ILiteralExpectation {", " type: \"literal\";", " text: string;", " ignoreCase: boolean;", "}", "", - "interface IClassParts extends Array {}", + "export interface IClassParts extends Array {}", "", - "interface IClassExpectation {", + "export interface IClassExpectation {", " type: \"class\";", " parts: IClassParts;", " inverted: boolean;", " ignoreCase: boolean;", "}", "", - "interface IAnyExpectation {", + "export interface IAnyExpectation {", " type: \"any\";", "}", "", - "interface IEndExpectation {", + "export interface IEndExpectation {", " type: \"end\";", "}", "", - "interface IOtherExpectation {", + "export interface IOtherExpectation {", " type: \"other\";", " 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) {",