elastic/kibana
View on GitHub[Deployment Management] Clean up @ts-expect-error failures from Typescript v4.9.5 upgrade
Open
#176244 opened on Feb 5, 2024
Team:Kibana Managementchoregood first issue
Description
https://github.com/elastic/kibana/pull/175178 upgrades Typescript to v4.9.5. This leads to TS errors in plugins owned by the Management team. Failures are marked with @ts-expect-error. These need to be removed and have the typings fixed.
Full list of failures to follow up on:
- x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/form/form_errors_context.tsx
- src/plugins/es_ui_shared/static/forms/hook_form_lib/components/use_field.tsx
- src/plugins/es_ui_shared/static/forms/hook_form_lib/hooks/use_field.ts
- src/plugins/es_ui_shared/static/forms/hook_form_lib/hooks/use_field_from_props.ts
- src/plugins/es_ui_shared/static/forms/hook_form_lib/types.ts