fix: unify declare form flow #656
Annotations
10 errors
Compile:
src/form/v2/birth/forms/child.ts#L231
Type '"DIVIDER"' is not assignable to type '"TEXT" | "DATE" | "PARAGRAPH" | "RADIO_GROUP" | "BULLET_LIST" | "PAGE_HEADER" | "SELECT" | "CHECKBOX" | "FILE" | "COUNTRY" | "LOCATION"'.
|
Compile:
src/form/v2/birth/forms/child.ts#L267
Type '{ id: string; type: "DIVIDER"; label: { defaultMessage: string; description: string; id: string; }; }' is not assignable to type '{ id: string; type: "TEXT"; label: TranslationConfig; options?: { type?: "number" | "text" | "email" | "password" | undefined; maxLength?: number | undefined; } | undefined; ... 7 more ...; placeholder?: TranslationConfig | undefined; } | ... 9 more ... | { ...; }'.
|
Compile:
src/form/v2/birth/forms/child.ts#L278
Type '{ id: string; type: "TEXT"; label: TranslationConfig; options?: { type?: "number" | "text" | "email" | "password" | undefined; maxLength?: number | undefined; } | undefined; ... 7 more ...; placeholder?: TranslationConfig | undefined; } | ... 13 more ... | { ...; }' is not assignable to type '{ id: string; type: "TEXT"; label: TranslationConfig; options?: { type?: "number" | "text" | "email" | "password" | undefined; maxLength?: number | undefined; } | undefined; ... 7 more ...; placeholder?: TranslationConfig | undefined; } | ... 9 more ... | { ...; }'.
|
Compile:
src/form/v2/birth/forms/child.ts#L291
Type '"DIVIDER"' is not assignable to type '"TEXT" | "DATE" | "PARAGRAPH" | "RADIO_GROUP" | "BULLET_LIST" | "PAGE_HEADER" | "SELECT" | "CHECKBOX" | "FILE" | "COUNTRY" | "LOCATION"'.
|
Compile:
src/form/v2/birth/forms/child.ts#L296
Type '"TEXT" | "DATE" | "PARAGRAPH" | "RADIO_GROUP" | "BULLET_LIST" | "PAGE_HEADER" | "SELECT" | "CHECKBOX" | "FILE" | "COUNTRY" | "LOCATION" | "DIVIDER"' is not assignable to type '"TEXT" | "DATE" | "PARAGRAPH" | "RADIO_GROUP" | "BULLET_LIST" | "PAGE_HEADER" | "SELECT" | "CHECKBOX" | "FILE" | "COUNTRY" | "LOCATION"'.
|
Compile:
src/form/v2/birth/forms/child.ts#L307
Type '"TEXT" | "DATE" | "PARAGRAPH" | "RADIO_GROUP" | "BULLET_LIST" | "PAGE_HEADER" | "SELECT" | "CHECKBOX" | "FILE" | "COUNTRY" | "LOCATION" | "DIVIDER"' is not assignable to type '"TEXT" | "DATE" | "PARAGRAPH" | "RADIO_GROUP" | "BULLET_LIST" | "PAGE_HEADER" | "SELECT" | "CHECKBOX" | "FILE" | "COUNTRY" | "LOCATION"'.
|
Compile:
src/form/v2/birth/forms/child.ts#L318
Type '"TEXT" | "DATE" | "PARAGRAPH" | "RADIO_GROUP" | "BULLET_LIST" | "PAGE_HEADER" | "SELECT" | "CHECKBOX" | "FILE" | "COUNTRY" | "LOCATION" | "DIVIDER"' is not assignable to type '"TEXT" | "DATE" | "PARAGRAPH" | "RADIO_GROUP" | "BULLET_LIST" | "PAGE_HEADER" | "SELECT" | "CHECKBOX" | "FILE" | "COUNTRY" | "LOCATION"'.
|
Compile:
src/form/v2/birth/forms/declare.ts#L59
Type '{ type: "BULLET_LIST"; id: string; label: { id: string; defaultMessage: string; description: string; }; hideLabel: true; items: { defaultMessage: string; description: string; id: string; }[]; font: "reg16"; }' is not assignable to type '{ id: string; type: "TEXT"; label: TranslationConfig; options?: { type?: "number" | "text" | "email" | "password" | undefined; maxLength?: number | undefined; } | undefined; ... 7 more ...; placeholder?: TranslationConfig | undefined; } | ... 9 more ... | { ...; }'.
|
Compile:
src/form/v2/birth/forms/declare.ts#L114
Type '"DIVIDER"' is not assignable to type '"TEXT" | "DATE" | "PARAGRAPH" | "RADIO_GROUP" | "BULLET_LIST" | "PAGE_HEADER" | "SELECT" | "CHECKBOX" | "FILE" | "COUNTRY" | "LOCATION"'.
|
Compile:
src/form/v2/birth/forms/declare.ts#L204
Type '"DIVIDER"' is not assignable to type '"TEXT" | "DATE" | "PARAGRAPH" | "RADIO_GROUP" | "BULLET_LIST" | "PAGE_HEADER" | "SELECT" | "CHECKBOX" | "FILE" | "COUNTRY" | "LOCATION"'.
|
Loading