Skip to content

Commit

Permalink
fix CI (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
ngxson committed May 7, 2024
1 parent 2e62e41 commit a2250d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gguf/src/types.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { GGUFMetadata, GGUFParseOutput } from "./types";
describe("gguf-types", () => {
it("gguf() type can be casted between STRICT and NON_STRICT (at compile time)", async () => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const result: Awaited<ReturnType<typeof gguf>> = {} as any;
const result: Awaited<ReturnType<typeof gguf>> = { metadata: {} } as any;
const strictType = result as GGUFParseOutput<{ strict: true }>;
// @ts-expect-error because the key "abc" does not exist
strictType.metadata.abc = 123;
Expand Down

0 comments on commit a2250d3

Please sign in to comment.