Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Dec 21, 2024
1 parent 71dd4ce commit c7e5942
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions packages/seroval/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,17 @@
"name": "seroval",
"type": "module",
"version": "1.1.1",
"files": ["dist", "src"],
"files": [
"dist",
"src"
],
"engines": {
"node": ">=10"
},
"license": "MIT",
"keywords": ["pridepack"],
"keywords": [
"pridepack"
],
"devDependencies": {
"@types/node": "^22.10.2",
"@vitest/ui": "^2.1.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/seroval/src/core/context/deserializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export default abstract class BaseDeserializerContext
private deserializeTypedArray(
node: SerovalTypedArrayNode | SerovalBigIntTypedArrayNode,
): TypedArrayValue | BigIntTypedArrayValue {
const construct = getTypedArrayConstructor(node.c);
const construct = getTypedArrayConstructor(node.c) as Int8ArrayConstructor;
const source = this.deserialize(node.f) as ArrayBuffer;
const result = this.assignIndexedValue(
node.i,
Expand Down

0 comments on commit c7e5942

Please sign in to comment.