start with broken tests #18
Annotations
10 errors
Run pnpm tsc
Process completed with exit code 2.
|
Run pnpm tsc:
tests/infer.test.ts#L893
Type 'Namespace<{ lexicon: 1; id: "com.example.blog"; defs: { main: { key: "tid"; record: ObjectResult<{ title: { required: true; } & { type: "string"; }; body: { required: true; } & { type: "string"; }; }>; } & { ...; }; metadata: ObjectResult<...>; }; }>' does not satisfy the constraint '{ id: string; defs: Record<string, unknown>; }'.
|
Run pnpm tsc:
tests/infer.test.ts#L856
Type 'Namespace<{ lexicon: 1; id: "com.example.app"; defs: { user: ObjectResult<{ name: { required: true; } & { type: "string"; }; email: { required: true; } & { type: "string"; }; }>; post: ObjectResult<{ title: { ...; } & { ...; }; content: { ...; } & { ...; }; }>; comment: ObjectResult<...>; }; }>' does not satisfy the constraint '{ id: string; defs: Record<string, unknown>; }'.
|
Run pnpm tsc:
tests/infer.test.ts#L797
Type 'ObjectResult<{ views: LexiconItem & { type: "integer"; }; likes: LexiconItem & { type: "integer"; }; shares: LexiconItem & { type: "integer"; }; }>' is not assignable to type 'LexiconItem'.
|
Run pnpm tsc:
tests/infer.test.ts#L790
Type 'ObjectResult<{ did: StringOptions & { type: "string"; }; handle: StringOptions & { type: "string"; }; avatar: LexiconItem & { type: "string"; }; }>' is not assignable to type 'LexiconItem'.
|
Run pnpm tsc:
tests/infer.test.ts#L722
Argument of type 'ObjectResult<{ id: { required: true; } & { type: "string"; }; name: { required: true; } & { type: "string"; }; }>' is not assignable to parameter of type 'LexiconItem'.
|
Run pnpm tsc:
tests/infer.test.ts#L688
Type 'ObjectResult<{ name: { required: true; } & { type: "string"; }; }>' is not assignable to type 'LexiconItem'.
|
Run pnpm tsc:
tests/infer.test.ts#L687
Type 'ObjectResult<ObjectProperties>' is not assignable to type 'LexiconItem'.
|
Run pnpm tsc:
tests/infer.test.ts#L686
Type 'ObjectResult<ObjectProperties>' is not assignable to type 'LexiconItem'.
|
Run pnpm tsc:
tests/infer.test.ts#L661
Type 'ObjectResult<{ name: { required: true; } & { type: "string"; }; email: { required: true; } & { type: "string"; }; }>' is not assignable to type 'LexiconItem'.
|
Loading