Skip to content

[TypeScript] Make types more strict in ra-core, part II #7561

[TypeScript] Make types more strict in ra-core, part II

[TypeScript] Make types more strict in ra-core, part II #7561

Triggered via pull request March 25, 2024 18:28
Status Failure
Total duration 8m 41s
Artifacts

test.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

16 errors and 12 warnings
crm
Property 'total' does not exist on type 'ReferenceManyFieldViewProps'.
crm
An interface can only extend an object type or intersection of object types with statically known members.
crm
Type '{ children: PropTypes.Requireable<PropTypes.ReactElementLike>; className: PropTypes.Requireable<string>; sort: PropTypes.Requireable<Required<PropTypes.InferProps<{ field: PropTypes.Requireable<string>; order: PropTypes.Requireable<...>; }>>>; ... 4 more ...; setSort: PropTypes.Requireable<...>; }' is not assignable to type 'WeakValidationMap<ReferenceManyFieldViewProps>'.
crm
Type '{ data: any[]; onSelect: (idsToAdd: Identifier[]) => void; onToggleItem: (id: Identifier) => void; onUnselectItems: () => void; selectedIds: any; displayedFilters: any; ... 19 more ...; isFromReference: boolean; }' is not assignable to type 'ListControllerResult'.
crm
Process completed with exit code 2.
e-commerce
Property 'total' does not exist on type 'ReferenceManyFieldViewProps'.
e-commerce
An interface can only extend an object type or intersection of object types with statically known members.
e-commerce
Type '{ children: PropTypes.Requireable<PropTypes.ReactElementLike>; className: PropTypes.Requireable<string>; sort: PropTypes.Requireable<Required<PropTypes.InferProps<{ field: PropTypes.Requireable<string>; order: PropTypes.Requireable<...>; }>>>; ... 4 more ...; setSort: PropTypes.Requireable<...>; }' is not assignable to type 'WeakValidationMap<ReferenceManyFieldViewProps>'.
e-commerce
Type '{ data: any[]; onSelect: (idsToAdd: Identifier[]) => void; onToggleItem: (id: Identifier) => void; onUnselectItems: () => void; selectedIds: any; displayedFilters: any; ... 19 more ...; isFromReference: boolean; }' is not assignable to type 'ListControllerResult'.
e-commerce
Process completed with exit code 2.
typecheck
Property 'total' does not exist on type 'ReferenceManyFieldViewProps'.
typecheck
An interface can only extend an object type or intersection of object types with statically known members.
typecheck
Type '{ children: PropTypes.Requireable<PropTypes.ReactElementLike>; className: PropTypes.Requireable<string>; sort: PropTypes.Requireable<Required<PropTypes.InferProps<{ field: PropTypes.Requireable<string>; order: PropTypes.Requireable<...>; }>>>; ... 4 more ...; setSort: PropTypes.Requireable<...>; }' is not assignable to type 'WeakValidationMap<ReferenceManyFieldViewProps>'.
typecheck
Type '{ data: any[]; onSelect: (idsToAdd: Identifier[]) => void; onToggleItem: (id: Identifier) => void; onUnselectItems: () => void; selectedIds: any; displayedFilters: any; ... 19 more ...; isFromReference: boolean; }' is not assignable to type 'ListControllerResult'.
typecheck
Process completed with exit code 2.
unit-test
Process completed with exit code 2.
crm
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/.
crm
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/
e-commerce
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/.
e-commerce
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/
typecheck
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/.
typecheck
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/
typecheck: packages/ra-core/src/controller/list/ListContext.tsx#L3
'th' is defined but never used. Allowed unused vars must match /^_/u
typecheck: packages/ra-ui-materialui/src/list/datagrid/DatagridRow.tsx#L3
'cloneElement' is defined but never used. Allowed unused vars must match /^_/u
e2e-test
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/.
e2e-test
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/
unit-test
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/.
unit-test
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/