Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed May 22, 2024
1 parent a3cac2b commit d29ad2b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/cbor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ export class CBORSimple implements CBORValue<number> {
}
}

export class CBORBreak implements CBORValue<never> {
public value: never;
export class CBORBreak implements CBORValue<null> {
public value = null;
}

export function compareCBORValues(a: CBORValue, b: CBORValue): boolean {
Expand Down
2 changes: 1 addition & 1 deletion src/float.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, test } from "vitest";
import { toFloat16, toFloat32, toFloat64 } from "./float";
import { toFloat16, toFloat32, toFloat64 } from "./float.js";

test("toFloat16", () => {
expect(toFloat16(new Uint8Array([0, 0]))).toBe(0);
Expand Down
2 changes: 1 addition & 1 deletion src/transform.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
CBORTextString,
CBORInvalidError
} from "./cbor.js";
import { transformCBORValueIntoNative } from "./transform";
import { transformCBORValueIntoNative } from "./transform.js";

describe("transformCBORValueIntoNative()", () => {
test("transform", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function transformCBORValueIntoNative(cbor: CBORValue): unknown {
return result;
}
if (cbor instanceof CBORMap) {
const result: object = {};
const result: Record<any, any> = {};
for (let i = 0; i < cbor.value.length; i++) {
const [entryKey, entryValue] = cbor.value[i];
let stringifiedKey: string;
Expand Down

0 comments on commit d29ad2b

Please sign in to comment.