diff --git a/package.json b/package.json index f922d693..e8e90f6f 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "private": true, "main": "index.js", "scripts": { - "prepare": "npm run buildtool && npm link antlr4ts-cli && npm run antlr4ts && npm run tsc && npm link target/src && npm run buildrts", + "prepare": "npm run buildtool && npm link antlr4ts-cli && npm run antlr4ts && npm run tsc && npm link ./target/src && npm run buildrts", "unlink": "npm unlink antlr4ts && npm unlink target/src && npm unlink antlr4ts-cli && npm run unlinkruntime && npm run unlinktool", "unlinkruntime": "cd target/src && npm unlink", "buildtool": "cd tool && npm link -force", diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/TypeScript/TypeScript.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/TypeScript/TypeScript.stg index aded57fc..b3606a1e 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/TypeScript/TypeScript.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/TypeScript/TypeScript.stg @@ -82,7 +82,7 @@ export interface Listener extends ParseTreeListener { * @param ctx the parse tree */ -enter?: (ctx: Context) => void; +enter?(ctx: Context): void; /** * Exit a parse tree produced by the `` @@ -92,7 +92,7 @@ enter?: (ctx: Context) => void; * @param ctx the parse tree */ -exit?: (ctx: Context) => void;}; separator="\n"> +exit?(ctx: Context): void;}; separator="\n"> } @@ -128,7 +128,7 @@ export interface Visitor\ extends ParseTreeVisitor\?: (ctx: Context) => Result;}; separator="\n"> +visit?(ctx: Context): Result;}; separator="\n"> }