fix infer to be a close match of what's simplified from the json given #20
Annotations
9 errors
Run pnpm tsc
Process completed with exit code 2.
|
Run pnpm tsc:
tests/primitives.test.ts#L619
Type '{ type: "object"; properties: { uri: { type: "string"; }; cid: { type: "string"; }; }; required: ["cid", "uri"]; }' is not assignable to type 'ObjectResult<ObjectProperties, never, never>'.
|
Run pnpm tsc:
tests/primitives.test.ts#L567
Type '{ type: "object"; properties: { uri: { type: "string"; }; cid: { type: "string"; }; }; required: ["cid", "uri"]; }' is not assignable to type 'ObjectResult<ObjectProperties, never, never>'.
|
Run pnpm tsc:
tests/primitives.test.ts#L464
Type '{ type: "object"; properties: { cursor: { type: "string"; format?: "at-identifier" | "at-uri" | "cid" | "datetime" | "did" | "handle" | "nsid" | "tid" | "record-key" | "uri" | "language" | undefined; ... 7 more ...; const?: string | undefined; }; hitsTotal: { ...; }; posts: { ...; }; }; required: [...]; }' is not assignable to type 'ObjectResult<ObjectProperties, never, never>'.
|
Run pnpm tsc:
tests/primitives.test.ts#L415
Type '{ type: "object"; properties: { posts: { type: "array"; items: LexiconItemCommonOptions & { type: "ref"; ref: "app.bsky.feed.defs#postView"; }; }; cursor: { type: "string"; ... 8 more ...; const?: string | undefined; }; }; required: [...]; }' is not assignable to type 'ObjectResult<ObjectProperties, never, never>'.
|
Run pnpm tsc:
tests/infer.test.ts#L602
Argument of type '{ type: "object"; properties: { id: { type: "string"; }; name: { type: "string"; }; }; required: ["name", "id"]; }' is not assignable to parameter of type 'LexiconItem'.
|
Run pnpm tsc:
src/lib.ts#L516
Property 'nullable' does not exist on type 'ObjectResult<T, RequiredKeys<T>, NullableKeys<T>>'.
|
Run pnpm tsc:
src/lib.ts#L513
Property 'required' does not exist on type 'ObjectResult<T, RequiredKeys<T>, NullableKeys<T>>'.
|
Run pnpm tsc:
src/lib.ts#L508
Type '{ type: "object"; properties: T; }' is not assignable to type 'ObjectResult<T, RequiredKeys<T>, NullableKeys<T>>'.
|
Loading