From dacfbed1e00e5dd2a0827602df2ff0b28d4230c2 Mon Sep 17 00:00:00 2001 From: Davit Vardanyan <78792753+davvard@users.noreply.github.com> Date: Mon, 31 Jul 2023 13:53:00 +0400 Subject: [PATCH] Make: Typescript --- package.json | 6 ++++-- tsconfig.json | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 tsconfig.json diff --git a/package.json b/package.json index cc2c02cb..4bd7da53 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "node": "~10 >=10.20 || >=12.17" }, "dependencies": { + "@types/node": "^20.4.5", "bindings": "~1.2.1", "node-addon-api": "^3.0.0" }, @@ -24,6 +25,7 @@ "@semantic-release/exec": "^6.0.3", "@semantic-release/git": "^10.0.1", "conventional-changelog-eslint": "^3.0.9", - "semantic-release": "^21.0.7" + "semantic-release": "^21.0.7", + "typescript": "^5.1.6" } -} \ No newline at end of file +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..dc7df0d4 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,8 @@ +{ + "typedocOptions": { + "entryPoints": [ + "javascript/usearch.d.ts" + ], + "out": "docs" + } +} \ No newline at end of file