Skip to content
This repository was archived by the owner on Jun 4, 2021. It is now read-only.

Commit 40de540

Browse files
committed
add typescript declaration
1 parent dccc141 commit 40de540

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
/node_modules/
22
/build/
33
/bin/
4+
/types/
45

56
/lib/*.js
67
/lib/*.js.map

.npmignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/.vscode/
2+
/bin/
23
/build/
34
/deps/
45
/onnxruntime/
@@ -9,6 +10,9 @@
910
/lib/**/*.ts
1011
/lib/**/*.js.map
1112

13+
/types/**/*
14+
!/types/lib/index.d.ts
15+
1216
/.clang-format
1317
/.gitmodules
1418
/CMakeLists.txt

tsconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"compilerOptions": {
99
"module": "commonjs",
1010
"moduleResolution": "node",
11+
"declaration": true,
12+
"declarationDir": "types",
1113
"esModuleInterop": true,
1214
"target": "es5",
1315
"lib": [

0 commit comments

Comments
 (0)