Fixed some minor issues within the declaration tool generator
parent
804f8de18d
commit
116779d151
|
@ -24,11 +24,5 @@ function generate_declaration() {
|
|||
|
||||
#Generate the loader definitions first
|
||||
app_declaration="../declarations/shared-app/"
|
||||
loader_declaration_app="../declarations/loader/"
|
||||
# loader_declaration_certaccept="declarations/exports_loader_certaccept.d.ts"
|
||||
|
||||
generate_declaration dtsconfig_app.json ${app_declaration}
|
||||
generate_declaration dtsconfig_loader_app.json ${loader_declaration_app}
|
||||
# generate_declaration dtsconfig_loader_certaccept.json ${loader_declaration_certaccept}
|
||||
|
||||
exit 0
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"source_files": [
|
||||
"../loader/loader.ts",
|
||||
"../loader/app.ts"
|
||||
],
|
||||
"target_file": "../declarations/exports_loader_app.d.ts"
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"source_files": [
|
||||
"../loader/loader.ts",
|
||||
"../loader/certaccept.ts"
|
||||
],
|
||||
"target_file": "../declarations/exports_loader_certaccept.d.ts"
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
/* general shared project config */
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "commonjs",
|
||||
"sourceMap": true,
|
||||
"experimentalDecorators": true,
|
||||
"plugins": [ ]
|
||||
},
|
||||
"include": [
|
||||
"../types",
|
||||
"../declarations/exports_loader_certaccept.d.ts",
|
||||
"../popup/certaccept/js/**/*.ts",
|
||||
"../js/BrowserIPC.ts"
|
||||
]
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
/* general shared project config */
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "none",
|
||||
"outFile": "../generated/certaccept.js",
|
||||
"plugins": [ ]
|
||||
},
|
||||
"include": [
|
||||
"../types",
|
||||
"../declarations/exports_loader_certaccept.d.ts",
|
||||
"../popup/certaccept/js/**/*.ts",
|
||||
"../js/BrowserIPC.ts",
|
||||
"../js/settings.ts",
|
||||
"../js/proto.ts",
|
||||
"../js/log.ts"
|
||||
]
|
||||
}
|
|
@ -1,16 +0,0 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "none",
|
||||
"sourceMap": true,
|
||||
"outFile": "../generated/loader_app.js"
|
||||
},
|
||||
"include": [
|
||||
"../types",
|
||||
"../declarations/imports_*.d.ts",
|
||||
"../declarations/exports_app.d.ts", /* lets include them because we require stuff like the log */
|
||||
"../loader/loader.ts",
|
||||
"../loader/app.ts",
|
||||
"../backend"
|
||||
]
|
||||
}
|
|
@ -1,18 +0,0 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"module": "none",
|
||||
"sourceMap": true,
|
||||
"outFile": "../generated/loader_certaccept.js"
|
||||
},
|
||||
"include": [
|
||||
"../types",
|
||||
"../loader/loader.ts",
|
||||
"../loader/certaccept.ts",
|
||||
/*
|
||||
Lets include them because we require stuff like the log.
|
||||
More sense would it to make an extra d.ts file for that, but who cares
|
||||
*/
|
||||
"../declarations/exports_app.d.ts"
|
||||
]
|
||||
}
|
|
@ -12,6 +12,4 @@ export function fix_declare_global(nodes: ts.Node[]) : ts.Node[] {
|
|||
if(has_export) return nodes;
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
SyntaxKind.PlusEqualsToken
|
||||
}
|
|
@ -255,6 +255,11 @@ function analyze_type_node(node: ts.TypeNode | ts.LeftHandSideExpression, data:
|
|||
analyze_type_node(pae.expression, data);
|
||||
break;
|
||||
|
||||
case SyntaxKind.ConstructorType:
|
||||
let ct = node as ts.ConstructorTypeNode;
|
||||
analyze_type_node(ct.type, data);
|
||||
break;
|
||||
|
||||
default:
|
||||
throw "Unknown type " + SyntaxKind[node.kind] + ". Extend me :)";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue