Skip to content

Add types to existing common values formatter #2446

Add types to existing common values formatter

Add types to existing common values formatter #2446

Triggered via pull request September 27, 2024 10:07
Status Failure
Total duration 1m 14s
Artifacts

build.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
build: src/utils/data-formatters/__tests__/format-duration-to-seconds.test.ts#L14
Argument of type '{ seconds: number; }' is not assignable to parameter of type 'Pick<Duration, "seconds">'.
build: src/utils/data-formatters/__tests__/format-duration-to-seconds.test.ts#L24
Argument of type '{ seconds: number; }' is not assignable to parameter of type 'Pick<Duration, "seconds">'.
build: src/utils/data-formatters/__tests__/format-failure-details.test.ts#L6
Argument of type '{}' is not assignable to parameter of type 'Pick<Failure, "details">'.
build: src/utils/data-formatters/__tests__/format-failure-details.test.ts#L11
Argument of type '{ details: null; }' is not assignable to parameter of type 'Pick<Failure, "details">'.
build: src/utils/data-formatters/__tests__/format-payload-map.test.ts#L23
Argument of type '{ otherKey: { subkey: { value: string; }; }; }' is not assignable to parameter of type '{ someKey: any; }'.
build: src/utils/data-formatters/__tests__/format-prev-auto-reset-points.test.ts#L16
Argument of type 'undefined' is not assignable to parameter of type 'ResetPoints | null'.
build: src/utils/data-formatters/__tests__/format-prev-auto-reset-points.test.ts#L56
Argument of type '{ points: { createdTime: { seconds: number; nanos: number; }; expiringTime: { seconds: number; nanos: number; }; otherProperty: string; }[]; }' is not assignable to parameter of type 'ResetPoints'.
build: src/utils/data-formatters/__tests__/format-prev-auto-reset-points.test.ts#L83
Argument of type '{ points: { createdTime: { seconds: number; nanos: number; }; }[]; }' is not assignable to parameter of type 'ResetPoints'.
build: src/utils/data-formatters/__tests__/format-workflow-history-event-type.test.ts#L13
Argument of type '"workflowExecutionStarted"' is not assignable to parameter of type '"workflowExecutionStartedEventAttributes" | "workflowExecutionCompletedEventAttributes" | "workflowExecutionFailedEventAttributes" | "workflowExecutionTimedOutEventAttributes" | ... 38 more ... | null'.
build: src/utils/data-formatters/__tests__/format-workflow-history-event-type.test.ts#L19
Argument of type '""' is not assignable to parameter of type '"workflowExecutionStartedEventAttributes" | "workflowExecutionCompletedEventAttributes" | "workflowExecutionFailedEventAttributes" | "workflowExecutionTimedOutEventAttributes" | ... 38 more ... | null'.
build
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/
build
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/