style: applied biome formatting to merged pull request sources

This commit is contained in:
can1357
2026-08-13 01:23:48 +02:00
parent 3cbb615630
commit ea10cce8d8
5 changed files with 5 additions and 23 deletions
@@ -22,11 +22,7 @@ function createApi(): CustomCommandAPI {
killed: false,
}),
typebox: {} as unknown as typeof TypeBox,
arktype: Object.assign(
Function.prototype.bind.call(type, undefined) as typeof type,
type,
{ type },
),
arktype: Object.assign(Function.prototype.bind.call(type, undefined) as typeof type, type, { type }),
zod,
pi: piCodingAgent,
};
@@ -107,10 +107,7 @@ describe("pi.typebox compatibility shim", () => {
});
it("applies schema-valued additionalProperties only to undeclared raw-object keys", () => {
const schema = Type.Object(
{ known: { type: "number" } },
{ additionalProperties: { type: "string" } },
);
const schema = Type.Object({ known: { type: "number" } }, { additionalProperties: { type: "string" } });
expect(schema.safeParse({ known: 1, extra: "ok" }).success).toBe(true);
expect(schema.safeParse({ known: "bad", extra: "ok" }).success).toBe(false);