From 92e9594b975698a2fb4c8486d7f80a905088c8b8 Mon Sep 17 00:00:00 2001 From: DanielJDufour Date: Sun, 13 Nov 2022 20:57:40 -0500 Subject: [PATCH] updated and fixed any typing --- package.json | 6 +++--- src/xdim.d.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 758a3af..9987a93 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "test": "npm run test:js && npm run test:ts && npm run test:types && npm run perf", "test:js": "npm run build && for f in tests/*.js; do node -r esm $f; done", "test:ts": "npm run build && for f in tests/*.ts; do npx ts-node $f; done", - "test:types": "npx tsc --moduleResolution node --noEmit --target es2020 ./tests/*.ts" + "test:types": "npx tsc --moduleResolution node --noEmit --noImplicitAny --target es2020 ./tests/*.ts" }, "repository": { "type": "git", @@ -47,11 +47,11 @@ "homepage": "https://github.com/DanielJDufour/xdim#readme", "dependencies": { "iter-fun": "^0.2.0", - "type-fest": "^2.17.0" + "type-fest": "^3.2.0" }, "devDependencies": { "esm": "^3.2.25", "flug": "^2.3.1", - "typescript": "^4.7.4" + "typescript": "^4.8.4" } } diff --git a/src/xdim.d.ts b/src/xdim.d.ts index bf969fc..4ece686 100644 --- a/src/xdim.d.ts +++ b/src/xdim.d.ts @@ -124,7 +124,7 @@ export function prepareData< }): { shape: S, data: ReturnType>, - arrayTypes + arrayTypes: ArrayTypeStrings } export function prepareSelect({