diff --git a/.vscode/extensions.json b/.vscode/extensions.json index ca876b4..1e4c0a7 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,6 +1,3 @@ { - "recommendations": [ - "editorconfig.editorconfig", - "esbenp.prettier-vscode", - ] + "recommendations": ["editorconfig.editorconfig", "esbenp.prettier-vscode"] } diff --git a/bun.lockb b/bun.lockb index 0b93ea3..479229e 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 248b484..8c5c6e5 100644 --- a/package.json +++ b/package.json @@ -13,13 +13,11 @@ "url": "https://github.com/HubertusWeber" } ], - "dependencies": { - "typescript": "^5.2.2" - }, "description": "Manipulates bits, nibbles, bytes, and buffers.", "devDependencies": { "bun-types": "^1.0.1", - "prettier": "^3.0.3" + "prettier": "^3.0.3", + "typescript": "^5.3.3" }, "homepage": "https://github.com/FlorianWendelborn/bitwise#readme", "keywords": [ @@ -68,5 +66,5 @@ }, "sideEffects": false, "types": "index.d.ts", - "version": "2.2.0" + "version": "2.2.1" } diff --git a/source/types.ts b/source/types.ts index 04b2979..86ef881 100644 --- a/source/types.ts +++ b/source/types.ts @@ -1,11 +1,9 @@ type UnionRange< N extends number, Result extends Array = [], -> = -(Result['length'] extends N +> = Result['length'] extends N ? Result[number] : UnionRange -) export type Bit = 0 | 1 export type Bits = Array