enhanced typing exports

pull/356/head
Vladimir Mandic 2021-10-22 13:49:40 -04:00
parent f1639837a6
commit c3dab75414
6 changed files with 19 additions and 4 deletions

View File

@ -9,8 +9,9 @@
## Changelog ## Changelog
### **HEAD -> main** 2021/10/21 mandic00@live.com ### **HEAD -> main** 2021/10/22 mandic00@live.com
- add optional autodetected custom wasm path
### **2.3.6** 2021/10/21 mandic00@live.com ### **2.3.6** 2021/10/21 mandic00@live.com

View File

@ -33,6 +33,8 @@
"global": { "global": {
"target": "es2018", "target": "es2018",
"sourcemap": false, "sourcemap": false,
"treeShaking": true,
"ignoreAnnotations": true,
"banner": { "js": "/*\n Human\n homepage: <https://github.com/vladmandic/human>\n author: <https://github.com/vladmandic>'\n*/\n" } "banner": { "js": "/*\n Human\n homepage: <https://github.com/vladmandic/human>\n author: <https://github.com/vladmandic>'\n*/\n" }
}, },
"targets": [ "targets": [

View File

@ -86,5 +86,8 @@
"tslib": "^2.3.1", "tslib": "^2.3.1",
"typedoc": "0.22.6", "typedoc": "0.22.6",
"typescript": "4.4.4" "typescript": "4.4.4"
},
"dependencies": {
"long": "^4.0.0"
} }
} }

View File

@ -11,3 +11,8 @@ export { Tensor } from '@tensorflow/tfjs-core/dist/index';
* @external * @external
*/ */
export { GraphModel } from '@tensorflow/tfjs-converter/dist/index'; export { GraphModel } from '@tensorflow/tfjs-converter/dist/index';
/** Tensorflow Long type
* @external
*/
export { Long } from 'long';

View File

@ -9,7 +9,11 @@ export * from '@tensorflow/tfjs-backend-webgl/dist/index.js';
export * from '@tensorflow/tfjs-backend-wasm/dist/index.js'; export * from '@tensorflow/tfjs-backend-wasm/dist/index.js';
// add webgpu to bundle, experimental // add webgpu to bundle, experimental
export * from '@tensorflow/tfjs-backend-webgpu/dist/index.js'; // export * from '@tensorflow/tfjs-backend-webgpu/dist/index.js';
// export versions, overrides version object from @tensorflow/tfjs // export versions, overrides version object from @tensorflow/tfjs
export { version } from '../dist/tfjs.version.js'; export { version } from '../dist/tfjs.version.js';
// export utility types used by Human
export { Tensor } from '@tensorflow/tfjs/dist/index.js';
export { GraphModel } from '@tensorflow/tfjs-converter/dist/index';

View File

@ -5,7 +5,7 @@
"moduleResolution": "node", "moduleResolution": "node",
"outDir": "types", "outDir": "types",
"baseUrl": "./", "baseUrl": "./",
"paths": { "tslib": ["node_modules/tslib/tslib.d.ts"] }, "paths": { "tslib": ["./node_modules/tslib/tslib.d.ts"] },
"allowJs": true, "allowJs": true,
"allowSyntheticDefaultImports": false, "allowSyntheticDefaultImports": false,
"allowUnreachableCode": false, "allowUnreachableCode": false,
@ -14,7 +14,7 @@
"declaration": true, "declaration": true,
"declarationMap": true, "declarationMap": true,
"emitDecoratorMetadata": true, "emitDecoratorMetadata": true,
"esModuleInterop": false, "esModuleInterop": true,
"exactOptionalPropertyTypes": true, "exactOptionalPropertyTypes": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,