Events v2: form field validation example #523
Annotations
7 errors
Compile:
src/form/tennis-club-membership.ts#L12
Module '"@opencrvs/toolkit/events"' has no exported member 'defineForm'.
|
Compile:
src/form/tennis-club-membership.ts#L21
Cannot find module '@opencrvs/toolkit/conditionals' or its corresponding type declarations.
|
Compile:
src/form/tennis-club-membership.ts#L270
Type '{ type: "DECLARE"; label: { defaultMessage: string; description: string; id: string; }; forms: any[]; allowedWhen: any; }' is not assignable to type '{ type: "CREATE"; label: { id: string; description: string; defaultMessage: string; }; forms: { active: boolean; version: { id: string; label: { id: string; description: string; defaultMessage: string; }; }; label: { ...; }; pages: { ...; }[]; }[]; } | { ...; } | { ...; }'.
|
Compile:
src/form/tennis-club-membership.ts#L273
Type '"VALIDATE"' is not assignable to type '"CREATE" | "DECLARE" | "REGISTER"'.
|
Compile:
src/form/tennis-club-membership.ts#L291
Type '{ type: "REGISTER"; label: { defaultMessage: string; description: string; id: string; }; allowedWhen: any; forms: any[]; }' is not assignable to type '{ type: "CREATE"; label: { id: string; description: string; defaultMessage: string; }; forms: { active: boolean; version: { id: string; label: { id: string; description: string; defaultMessage: string; }; }; label: { ...; }; pages: { ...; }[]; }[]; } | { ...; } | { ...; }'.
|
Compile:
src/form/tennis-club-membership.ts#L303
Type '"CUSTOM"' is not assignable to type '"CREATE" | "DECLARE" | "REGISTER"'.
|
Compile
Process completed with exit code 2.
|
Loading