Feat implement birth v2 #579
Annotations
10 errors
test:
src/form/v2/birth/forms/child.ts#L12
'"@opencrvs/toolkit/events"' has no exported member named 'defineFormPage'. Did you mean 'defineForm'?
|
test:
src/form/v2/birth/forms/child.ts#L248
Property 'isUndefinedOrNotInArray' does not exist on type '{ isBeforeNow: () => { type: string; properties: { $form: { type: string; properties: { [x: string]: { type: string; format: string; formatMaximum: { $data: string; }; }; }; required: string[]; }; $now: { type: string; format: string; }; }; required: string[]; }; }'.
|
test:
src/form/v2/birth/forms/child.ts#L259
Property 'isUndefinedOrNotInArray' does not exist on type '{ isBeforeNow: () => { type: string; properties: { $form: { type: string; properties: { [x: string]: { type: string; format: string; formatMaximum: { $data: string; }; }; }; required: string[]; }; $now: { type: string; format: string; }; }; required: string[]; }; }'.
|
test:
src/form/v2/birth/forms/child.ts#L270
Property 'isUndefinedOrNotInArray' does not exist on type '{ isBeforeNow: () => { type: string; properties: { $form: { type: string; properties: { [x: string]: { type: string; format: string; formatMaximum: { $data: string; }; }; }; required: string[]; }; $now: { type: string; format: string; }; }; required: string[]; }; }'.
|
test:
src/form/v2/birth/forms/declare.ts#L111
Property 'isInArray' does not exist on type '{ isBeforeNow: () => { type: string; properties: { $form: { type: string; properties: { [x: string]: { type: string; format: string; formatMaximum: { $data: string; }; }; }; required: string[]; }; $now: { type: string; format: string; }; }; required: string[]; }; }'.
|
test:
src/form/v2/birth/forms/declare.ts#L131
Property 'isUndefinedOrInArray' does not exist on type '{ isBeforeNow: () => { type: string; properties: { $form: { type: string; properties: { [x: string]: { type: string; format: string; formatMaximum: { $data: string; }; }; }; required: string[]; }; $now: { type: string; format: string; }; }; required: string[]; }; }'.
|
test:
src/form/v2/birth/forms/declare.ts#L137
Type '{ id: string; type: "TEXT"; label: { id: string; defaultMessage: string; description: string; }; conditionals: ({ type: "SHOW"; conditional: JSONSchema; } | { type: "ENABLE"; conditional: JSONSchema; })[]; ... 7 more ...; placeholder?: { ...; } | undefined; } | ... 4 more ... | { ...; }' is not assignable to type '{ id: string; type: "TEXT"; label: { id: string; defaultMessage: string; description: string; }; conditionals: ({ type: "SHOW"; conditional: JSONSchema; } | { type: "ENABLE"; conditional: JSONSchema; })[]; ... 7 more ...; placeholder?: { ...; } | undefined; } | { ...; } | { ...; } | { ...; } | { ...; }'.
|
test:
src/form/v2/birth/forms/declare.ts#L138
Type '{ id: string; type: "TEXT"; required: false; label: { defaultMessage: string; description: string; id: string; }; }' is not assignable to type '{ id: string; type: "TEXT"; label: { id: string; defaultMessage: string; description: string; }; conditionals: ({ type: "SHOW"; conditional: JSONSchema; } | { type: "ENABLE"; conditional: JSONSchema; })[]; ... 7 more ...; placeholder?: { ...; } | undefined; } | { ...; } | { ...; } | { ...; } | { ...; }'.
|
test:
src/form/v2/birth/forms/declare.ts#L153
Property 'isInArray' does not exist on type '{ isBeforeNow: () => { type: string; properties: { $form: { type: string; properties: { [x: string]: { type: string; format: string; formatMaximum: { $data: string; }; }; }; required: string[]; }; $now: { type: string; format: string; }; }; required: string[]; }; }'.
|
test:
src/form/v2/birth/forms/declare.ts#L154
Property 'isUndefinedOrNotInArray' does not exist on type '{ isBeforeNow: () => { type: string; properties: { $form: { type: string; properties: { [x: string]: { type: string; format: string; formatMaximum: { $data: string; }; }; }; required: string[]; }; $now: { type: string; format: string; }; }; required: string[]; }; }'.
|