From 13747d53c2b5c6922f79188785cb46dd16acc69b Mon Sep 17 00:00:00 2001 From: "Pedro J. Molina" Date: Wed, 30 May 2018 00:28:53 +0200 Subject: [PATCH] export missing types --- src/passes/generate-ts.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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) {",