Fix index file to respect types as classes
This commit is contained in:
parent
5bde88e90b
commit
bea91800d6
@ -10393,7 +10393,7 @@ var TypescriptTarget = class extends CompileTarget {
|
|||||||
case "type":
|
case "type":
|
||||||
a(0, this.generateImport(`${def.name}, { apply_${def.name} }`, "./" + def.name));
|
a(0, this.generateImport(`${def.name}, { apply_${def.name} }`, "./" + def.name));
|
||||||
a(0, `export { apply_${def.name} }`);
|
a(0, `export { apply_${def.name} }`);
|
||||||
a(0, `export type { ${def.name} }`);
|
a(0, `export { ${def.name} }`);
|
||||||
a(0, ``);
|
a(0, ``);
|
||||||
break;
|
break;
|
||||||
case "enum":
|
case "enum":
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@hibas123/jrpcgen",
|
"name": "@hibas123/jrpcgen",
|
||||||
"version": "1.0.23",
|
"version": "1.0.24",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"packageManager": "yarn@3.1.1",
|
"packageManager": "yarn@3.1.1",
|
||||||
|
@ -454,7 +454,7 @@ export class TypescriptTarget extends CompileTarget {
|
|||||||
);
|
);
|
||||||
|
|
||||||
a(0, `export { apply_${def.name} }`);
|
a(0, `export { apply_${def.name} }`);
|
||||||
a(0, `export type { ${def.name} }`);
|
a(0, `export { ${def.name} }`);
|
||||||
a(0, ``);
|
a(0, ``);
|
||||||
break;
|
break;
|
||||||
case "enum":
|
case "enum":
|
||||||
|
Loading…
Reference in New Issue
Block a user