fix: role init + sharing types backend/frontend #956
Annotations
5 errors and 2 warnings
Check types:
src/pages/admin/index.tsx#L54
Type 'string | number' is not assignable to type '"PARA" | "CASE_MANAGER" | "ADMIN"'.
|
Check types:
src/pages/admin/index.tsx#L146
Type '{ role: string; user_id: string; first_name: string; last_name: string; email: string; image_url: string | null; }[]' is not assignable to type 'User[]'.
|
Check types:
src/pages/admin/index.tsx#L155
Type '(newSortBy: SortBy, newSortOrder: SortOrder) => void' is not assignable to type '(sortBy: keyof User, sortOrder: "desc" | "asc") => void'.
|
Check types:
src/pages/users/[user_id].tsx#L154
The type 'readonly [{ readonly label: "Para"; readonly value: "PARA"; }, { readonly label: "Case Manager"; readonly value: "CASE_MANAGER"; }, { readonly label: "Admin"; readonly value: "ADMIN"; }]' is 'readonly' and cannot be assigned to the mutable type 'MenuItemProp[]'.
|
Check types
Process completed with exit code 2.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: 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/
|
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, 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/
|
Loading