Skip to content

Commit

Permalink
fix(dependencies): Remove typescript from dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianWendelborn committed Dec 13, 2023
1 parent 1e5ee8a commit 4ed6dc4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
5 changes: 1 addition & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"recommendations": [
"editorconfig.editorconfig",
"esbenp.prettier-vscode",
]
"recommendations": ["editorconfig.editorconfig", "esbenp.prettier-vscode"]
}
Binary file modified bun.lockb
Binary file not shown.
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down Expand Up @@ -68,5 +66,5 @@
},
"sideEffects": false,
"types": "index.d.ts",
"version": "2.2.0"
"version": "2.2.1"
}
4 changes: 1 addition & 3 deletions source/types.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
type UnionRange<
N extends number,
Result extends Array<number> = [],
> =
(Result['length'] extends N
> = Result['length'] extends N
? Result[number]
: UnionRange<N, [...Result, Result['length']]>
)

export type Bit = 0 | 1
export type Bits = Array<Bit>
Expand Down

0 comments on commit 4ed6dc4

Please sign in to comment.