Skip to content

RFC: Add advanced typing to your hal json vuex #2689

RFC: Add advanced typing to your hal json vuex

RFC: Add advanced typing to your hal json vuex #2689

Triggered via pull request April 24, 2024 14:00
Status Failure
Total duration 42s
Artifacts

continuous-integration.yml

on: pull_request
Matrix: Unit tests
Fit to window
Zoom out
Zoom in

Annotations

39 errors and 6 warnings
Linter
Process completed with exit code 2.
Unit tests (20): src/Collection.ts#L15
Class 'Collection<Item>' incorrectly implements interface 'CollectionInterface<Item>'.
Unit tests (20): src/Collection.ts#L15
Type 'Item & Link' does not satisfy the constraint 'ResourceInterface<Item & Link>'.
Unit tests (20): src/Collection.ts#L22
Property 'items' does not exist on type 'StoreData<Item & Link>'.
Unit tests (20): src/Collection.ts#L29
Property 'items' does not exist on type 'StoreData<Item & Link>'.
Unit tests (20): src/Collection.ts#L36
Property 'items' does not exist on type 'StoreData<Item & Link>'.
Unit tests (20): src/ResourceCreator.ts#L63
Conversion of type 'StoreData<T | Item> & CollectionInterface<ResourceInterface<ResourceInterface<any>>>' to type 'StoreData<Item & Link>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Unit tests (20): src/ResourceCreator.ts#L67
Type 'T' does not satisfy the constraint 'ResourceInterface<T>'.
Unit tests (20): src/storeModule.ts#L6
Generic type 'StoreData' requires 1 type argument(s).
Unit tests (20)
Process completed with exit code 2.
Unit tests (16)
The job was canceled because "_20" failed.
Unit tests (16): src/Collection.ts#L15
Class 'Collection<Item>' incorrectly implements interface 'CollectionInterface<Item>'.
Unit tests (16): src/Collection.ts#L15
Type 'Item & Link' does not satisfy the constraint 'ResourceInterface<Item & Link>'.
Unit tests (16): src/Collection.ts#L22
Property 'items' does not exist on type 'StoreData<Item & Link>'.
Unit tests (16): src/Collection.ts#L29
Property 'items' does not exist on type 'StoreData<Item & Link>'.
Unit tests (16): src/Collection.ts#L36
Property 'items' does not exist on type 'StoreData<Item & Link>'.
Unit tests (16): src/ResourceCreator.ts#L63
Conversion of type 'StoreData<T | Item> & CollectionInterface<ResourceInterface<ResourceInterface<any>>>' to type 'StoreData<Item & Link>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Unit tests (16): src/ResourceCreator.ts#L67
Type 'T' does not satisfy the constraint 'ResourceInterface<T>'.
Unit tests (16): src/storeModule.ts#L6
Generic type 'StoreData' requires 1 type argument(s).
Unit tests (16)
Process completed with exit code 2.
Unit tests (18)
The job was canceled because "_20" failed.
Unit tests (18): src/Collection.ts#L15
Class 'Collection<Item>' incorrectly implements interface 'CollectionInterface<Item>'.
Unit tests (18): src/Collection.ts#L15
Type 'Item & Link' does not satisfy the constraint 'ResourceInterface<Item & Link>'.
Unit tests (18): src/Collection.ts#L22
Property 'items' does not exist on type 'StoreData<Item & Link>'.
Unit tests (18): src/Collection.ts#L29
Property 'items' does not exist on type 'StoreData<Item & Link>'.
Unit tests (18): src/Collection.ts#L36
Property 'items' does not exist on type 'StoreData<Item & Link>'.
Unit tests (18): src/ResourceCreator.ts#L63
Conversion of type 'StoreData<T | Item> & CollectionInterface<ResourceInterface<ResourceInterface<any>>>' to type 'StoreData<Item & Link>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Unit tests (18): src/ResourceCreator.ts#L67
Type 'T' does not satisfy the constraint 'ResourceInterface<T>'.
Unit tests (18): src/storeModule.ts#L6
Generic type 'StoreData' requires 1 type argument(s).
Unit tests (18)
Process completed with exit code 2.
Build: src/Collection.ts#L15
Class 'Collection<Item>' incorrectly implements interface 'CollectionInterface<Item>'.
Build: src/Collection.ts#L15
Type 'Item & Link' does not satisfy the constraint 'ResourceInterface<Item & Link>'.
Build: src/Collection.ts#L22
Property 'items' does not exist on type 'StoreData<Item & Link>'.
Build: src/Collection.ts#L29
Property 'items' does not exist on type 'StoreData<Item & Link>'.
Build: src/Collection.ts#L36
Property 'items' does not exist on type 'StoreData<Item & Link>'.
Build: src/ResourceCreator.ts#L63
Conversion of type 'StoreData<T | Item> & CollectionInterface<ResourceInterface<ResourceInterface<any>>>' to type 'StoreData<Item & Link>' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.
Build: src/ResourceCreator.ts#L67
Type 'T' does not satisfy the constraint 'ResourceInterface<T>'.
Build: src/storeModule.ts#L6
Generic type 'StoreData' requires 1 type argument(s).
Build
Process completed with exit code 2.
Linter
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, actions/setup-node@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Linter
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@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 tests (20)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, actions/setup-node@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Unit tests (20)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@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
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, actions/setup-node@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@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/