Skip to content

Replace 'any' with 'unknown' to avoid certain typescript pitfalls #27

Replace 'any' with 'unknown' to avoid certain typescript pitfalls

Replace 'any' with 'unknown' to avoid certain typescript pitfalls #27

Triggered via push May 29, 2024 11:54
Status Failure
Total duration 18s
Artifacts

test.yml

on: push
Matrix: build-test
Fit to window
Zoom out
Zoom in

Annotations

9 errors and 2 warnings
build-test (20.x): tests/demoComponent.ts#L1
Argument of type '(request: Request) => Response' is not assignable to parameter of type '(request: unknown) => Response | Promise<Response>'.
build-test (20.x): tests/demoComponent.ts#L1
Object is of type 'unknown'.
build-test (20.x): tests/demoComponent.ts#L1
Object is of type 'unknown'.
build-test (20.x): tests/demoComponent.ts#L1
Object is of type 'unknown'.
build-test (20.x): tests/demoComponent.ts#L1
No overload matches this call.
build-test (20.x): tests/demoComponent.ts#L1
Argument of type 'unknown' is not assignable to parameter of type 'string | Record<string, string> | URLSearchParams | string[][] | undefined'.
build-test (20.x): tests/demoComponent.ts#L1
Argument of type '({ parameters }: { parameters: { [k: string]: unknown; }; }) => Promise<unknown>' is not assignable to parameter of type 'EmbedCallback'.
build-test (20.x): tests/demoComponent.ts#L1
Argument of type '() => Promise<unknown>' is not assignable to parameter of type 'WidgetCallback'.
build-test (20.x)
Process completed with exit code 2.
build-test (20.x)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-node@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build-test (20.x)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/