Skip to content

Commit

Permalink
chore(lib): add prettier and format things
Browse files Browse the repository at this point in the history
  • Loading branch information
rektdeckard committed Sep 9, 2023
1 parent 338e577 commit 0fd3acb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kdim

A collection of interesting data structures and utility types for messing around with mathematical things in Node/JS/TS. No guarantees are made here as to the speed, efficiency, or correctness of tools providied!
A collection of interesting helpers, data structures, and utility types for messing around with mathematical things in Node/JS/TS. No guarantees are made here as to the speed, efficiency, or correctness of tools provided!

[![NPM](https://img.shields.io/npm/v/kdim.svg?style=flat-square)](https://www.npmjs.com/package/kdim)
![npm bundle size](https://img.shields.io/bundlephobia/minzip/kdim?style=flat-square)
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"devDependencies": {
"@types/node": "18.11.18",
"@vitest/coverage-v8": "^0.34.1",
"prettier": "^3.0.2",
"typescript": "^5.1.6",
"vite": "^4.4.9",
"vitest": "^0.34.1"
Expand Down
2 changes: 1 addition & 1 deletion src/math/matrix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type MatrixOperand<M extends number, N extends number> =
type MatrixResult<
M extends number,
N extends number,
I extends MatrixOperand<number, number> | number
I extends MatrixOperand<number, number> | number,
> = I extends number
? Matrix<M, N>
: I extends MatrixOperand<infer O, infer P>
Expand Down
1 change: 0 additions & 1 deletion src/math/transforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ export class Range {
* if (n < -3) break;
* console.log(n);
* }
*
* // 0
* // -1
* // -2
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,11 @@ postcss@^8.4.27:
picocolors "^1.0.0"
source-map-js "^1.0.2"

prettier@^3.0.2:
version "3.0.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.2.tgz#78fcecd6d870551aa5547437cdae39d4701dca5b"
integrity sha512-o2YR9qtniXvwEZlOKbveKfDQVyqxbEIWn48Z8m3ZJjBjcCmUy3xZGIv+7AkaeuaTr6yPXJjwv07ZWlsWbEy1rQ==

pretty-format@^29.5.0:
version "29.6.2"
resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.6.2.tgz#3d5829261a8a4d89d8b9769064b29c50ed486a47"
Expand Down

0 comments on commit 0fd3acb

Please sign in to comment.