Skip to content

Fix andThenAsync type #152

Fix andThenAsync type

Fix andThenAsync type #152

Triggered via pull request April 15, 2024 17:47
Status Failure
Total duration 54s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 4 warnings
test-node: test/result.test.ts#L168
Argument of type '(num: number) => Ok<number, never> | Err<Bar, never> | Err<Baz, never>' is not assignable to parameter of type '(value: number) => Result<number, Bar>'.
test-node: test/result.test.ts#L177
Type 'Result<number, Foo | Bar | Baz>' does not satisfy the constraint '{ [inspectSymbol]: () => `Ok(${string})` | `Err(${string})`; [iterator]: "Expected: function, Actual: function"; value: "Expected: number, Actual: unknown" | "Expected: undefined, Actual: unknown"; ... 35 more ...; toJSON: "Expected: function, Actual: function"; }'.
test-node
Process completed with exit code 2.
checks
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test-node
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test-browser
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, pnpm/action-setup@v2, actions/setup-node@v3, actions/cache@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test-browser
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/