feat(vil-612): fix lint error for activity content #4127
Annotations
6 errors and 2 warnings
Run typescript:
server/controllers/activity.ts#L166
Type '{ type: "object"; properties: { type: { type: "number"; }; subType: { type: "number"; nullable: true; }; status: { type: "number"; nullable: true; }; phase: { type: "number"; nullable: true; }; data: { type: "object"; additionalProperties: true; nullable: false; }; ... 5 more ...; displayAsUser: { ...; }; }; require...' is not assignable to type 'UncheckedJSONSchemaType<CreateActivityData, false>'.
|
Run typescript:
server/controllers/activity.ts#L348
Type '{ type: "object"; properties: { status: { type: "number"; nullable: true; }; phase: { type: "number"; nullable: true; }; phaseStep: { type: "string"; nullable: true; }; responseActivityId: { type: "number"; nullable: true; }; ... 4 more ...; content: { ...; }; }; required: never[]; additionalProperties: false; }' is not assignable to type 'UncheckedJSONSchemaType<UpdateActivity, false>'.
|
Run typescript:
server/controllers/game.ts#L415
Property 'game' does not exist on type 'ActivityContent[]'.
|
Run typescript:
server/controllers/pelicoPresentation.ts#L30
Type '{ type: "object"; properties: { content: { type: "array"; items: { type: "object"; properties: { id: { type: "number"; nullable: false; }; type: { type: "string"; nullable: false; enum: ("text" | "video" | "image" | "h5p" | "sound" | "document")[]; }; value: { ...; }; }; required: ("type" | "value")[]; }; nullable: ...' is not assignable to type 'UncheckedJSONSchemaType<CreatePelicoData, false>'.
|
Run typescript:
server/controllers/pelicoPresentation.ts#L67
Type '{ type: "object"; properties: { content: { type: "array"; items: { type: "object"; properties: { id: { type: "number"; nullable: false; }; type: { type: "string"; nullable: false; enum: ("text" | "video" | "image" | "h5p" | "sound" | "document")[]; }; value: { ...; }; }; required: ("type" | "value")[]; }; nullable: ...' is not assignable to type 'UncheckedJSONSchemaType<UpdatePelicoData, false>'.
|
Run typescript
Process completed with exit code 2.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Loading