Updated declaration files

This commit is contained in:
WolverinDEV 2018-12-04 18:48:35 +01:00
parent 1d4a428284
commit 97d0443cf5
8 changed files with 24 additions and 54 deletions

View file

@ -24,12 +24,12 @@ cd "$BASEDIR/../"
#Note: For the client we have to use the given file
#Web
execute_tsc -p web/tsconfig/tsdeclaration.json
npm run dtsgen -- --config web/tsconfig/dtsconfig.json -v
replace_tribble web/declarations/exports.d.ts
echo "Generated web declarations"
#Shared
execute_tsc -p shared/tsconfig/tsdeclaration.json
npm run dtsgen -- --config shared/tsconfig/dtsconfig.json -v
replace_tribble shared/declarations/exports.d.ts
echo "Generated shared declarations"

View file

@ -12,7 +12,7 @@ if [ -e ${LOADER_FILE} ]; then
echo "Failed to remove loader file!\nThis could be critical later!"
fi
fi
result=$(execute_tsc -p tsconfig/tsdeclaration_loader.json)
npm run dtsgen -- --config $(pwd)/tsconfig/dtsconfig_loader.json -v
if [ ! -e ${LOADER_FILE} ]; then
echo "Failed to generate definitions"
echo "$result"

View file

@ -0,0 +1,9 @@
{
"source_files": [
"../js/**/*.ts"
],
"exclude": [
"../js/workers/**/*.ts"
],
"target_file": "../declarations/exports.d.ts"
}

View file

@ -0,0 +1,6 @@
{
"source_files": [
"../js/load.ts"
],
"target_file": "../declarations/exports_loader.d.ts"
}

View file

@ -1,19 +0,0 @@
{
"compilerOptions": {
"listFiles": true,
"module": "system",
"target": "es6",
"declaration": true,
"emitDeclarationOnly": true,
"allowJs": false,
"checkJs": false,
"outFile": "../declarations/exports"
},
"include": [
"../js/**/*.ts"
],
"exclude": [
"../js/workers/**/*.ts"
]
}

View file

@ -1,16 +0,0 @@
{
"compilerOptions": {
"listFiles": true,
"module": "system",
"target": "es6",
"declaration": true,
"emitDeclarationOnly": true,
"allowJs": false,
"checkJs": false,
"outFile": "../declarations/exports_loader"
},
"include": [
"../js/load.ts"
]
}

View file

@ -0,0 +1,6 @@
{
"source_files": [
"../js/**/*.ts"
],
"target_file": "../declarations/exports.d.ts"
}

View file

@ -1,16 +0,0 @@
{
"compilerOptions": {
"listFiles": true,
"module": "system",
"target": "es6",
"declaration": true,
"emitDeclarationOnly": true,
"allowJs": false,
"checkJs": false,
"outFile": "../declarations/exports"
},
"include": [
"../js/**/*.ts"
]
}