diff --git a/lib/jrpc.js b/lib/jrpc.js index bbbfb5f..396f346 100755 --- a/lib/jrpc.js +++ b/lib/jrpc.js @@ -10393,7 +10393,7 @@ var TypescriptTarget = class extends CompileTarget { case "type": a(0, this.generateImport(`${def.name}, { apply_${def.name} }`, "./" + def.name)); a(0, `export { apply_${def.name} }`); - a(0, `export type { ${def.name} }`); + a(0, `export { ${def.name} }`); a(0, ``); break; case "enum": diff --git a/package.json b/package.json index fd076a3..e00869e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/jrpcgen", - "version": "1.0.23", + "version": "1.0.24", "main": "lib/index.js", "license": "MIT", "packageManager": "yarn@3.1.1", diff --git a/src/targets/typescript.ts b/src/targets/typescript.ts index eea40c5..7b9b96e 100644 --- a/src/targets/typescript.ts +++ b/src/targets/typescript.ts @@ -454,7 +454,7 @@ export class TypescriptTarget extends CompileTarget { ); a(0, `export { apply_${def.name} }`); - a(0, `export type { ${def.name} }`); + a(0, `export { ${def.name} }`); a(0, ``); break; case "enum":