fix: unify declare form flow #646
Annotations
5 errors
test:
src/form/v2/birth/forms/child.ts#L270
Type '{ type: "TEXT"; id: string; label: { id: string; description: string; defaultMessage: string; }; options?: { type?: "number" | "text" | "email" | "password" | undefined; maxLength?: number | undefined; } | undefined; ... 7 more ...; placeholder?: { ...; } | undefined; } | ... 11 more ... | { ...; }' is not assignable to type '{ type: "TEXT"; id: string; label: { id: string; description: string; defaultMessage: string; }; options?: { type?: "number" | "text" | "email" | "password" | undefined; maxLength?: number | undefined; } | undefined; ... 7 more ...; placeholder?: { ...; } | undefined; } | ... 8 more ... | { ...; }'.
|
test:
src/form/v2/birth/forms/child.ts#L281
Type '{ type: "TEXT"; id: string; label: { id: string; description: string; defaultMessage: string; }; options?: { type?: "number" | "text" | "email" | "password" | undefined; maxLength?: number | undefined; } | undefined; ... 7 more ...; placeholder?: { ...; } | undefined; } | ... 11 more ... | { ...; }' is not assignable to type '{ type: "TEXT"; id: string; label: { id: string; description: string; defaultMessage: string; }; options?: { type?: "number" | "text" | "email" | "password" | undefined; maxLength?: number | undefined; } | undefined; ... 7 more ...; placeholder?: { ...; } | undefined; } | ... 8 more ... | { ...; }'.
|
test:
src/form/v2/birth/forms/child.ts#L292
Type '{ type: "TEXT"; id: string; label: { id: string; description: string; defaultMessage: string; }; options?: { type?: "number" | "text" | "email" | "password" | undefined; maxLength?: number | undefined; } | undefined; ... 7 more ...; placeholder?: { ...; } | undefined; } | ... 11 more ... | { ...; }' is not assignable to type '{ type: "TEXT"; id: string; label: { id: string; description: string; defaultMessage: string; }; options?: { type?: "number" | "text" | "email" | "password" | undefined; maxLength?: number | undefined; } | undefined; ... 7 more ...; placeholder?: { ...; } | undefined; } | ... 8 more ... | { ...; }'.
|
test:
src/form/v2/birth/forms/child.ts#L314
Type '{ id: string; type: "TEXT"; required: false; label: { defaultMessage: string; description: string; id: string; }; options: { type: "number"; postfix: { defaultMessage: string; description: string; id: string; }; }; }' is not assignable to type '{ type: "TEXT"; id: string; label: { id: string; description: string; defaultMessage: string; }; options?: { type?: "number" | "text" | "email" | "password" | undefined; maxLength?: number | undefined; } | undefined; ... 7 more ...; placeholder?: { ...; } | undefined; } | ... 8 more ... | { ...; }'.
|
test
Process completed with exit code 2.
|