Skip to content

feat(vil-612): fix ts error #4133

feat(vil-612): fix ts error

feat(vil-612): fix ts error #4133

Triggered via push November 25, 2024 10:32
Status Failure
Total duration 1m 8s
Artifacts

test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

6 errors and 6 warnings
typescript: server/controllers/activity.ts#L168
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>'.
typescript: server/controllers/activity.ts#L352
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>'.
typescript: server/controllers/game.ts#L415
Property 'game' does not exist on type 'ActivityContent[]'.
typescript: server/controllers/pelicoPresentation.ts#L32
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>'.
typescript: server/controllers/pelicoPresentation.ts#L71
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>'.
typescript
Process completed with exit code 2.
unit-test
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/
unit-test
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/
typescript
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/
typescript
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/
lint
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/
lint
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/