Fix index file to respect types as classes

This commit is contained in:
K35 2022-01-15 13:55:00 +00:00
parent 5bde88e90b
commit bea91800d6
3 changed files with 3 additions and 3 deletions

View File

@ -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":

View File

@ -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",

View File

@ -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":