Skip to content

FormProvider.tsx - useOnyx migration #50812

FormProvider.tsx - useOnyx migration

FormProvider.tsx - useOnyx migration #50812

Triggered via pull request September 21, 2024 04:26
Status Failure
Total duration 2m 22s
Artifacts

typecheck.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
typecheck: src/components/Form/FormProvider.tsx#L96
Argument of type 'Errors | (string & Errors) | null | undefined' is not assignable to parameter of type '(string & Errors) | EmptyValue'.
typecheck: src/components/Form/FormProvider.tsx#L255
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'AdditionalDetailStepForm | PersonalBankAccountForm | ReimbursementAccountForm | IssueNewExpensifyCardForm | ... 81 more ... | DebugReportActionForm'.
typecheck: src/components/Form/FormProvider.tsx#L256
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'AdditionalDetailStepForm | PersonalBankAccountForm | ReimbursementAccountForm | IssueNewExpensifyCardForm | ... 81 more ... | DebugReportActionForm'.
typecheck: src/pages/settings/Profile/CustomStatus/StatusPage.tsx#L170
Type '{ children: Element[]; formID: "settingsStatusSetForm"; style: ({ flex: number; } | { flexGrow: number; })[]; ref: RefObject<FormRef>; submitButtonText: string; submitButtonStyles: ({ ...; } | { ...; })[]; onSubmit: ({ emojiCode, statusText }: FormOnyxValues<...>) => void; validate: () => Partial<...>; enabledWhenOf...' is not assignable to type 'IntrinsicAttributes & FormProps<"settingsStatusSetForm"> & { children: ReactNode | ((props: { inputValues: FormOnyxValues<"settingsStatusSetForm">; }) => ReactNode); ... 7 more ...; allowHTML?: boolean | undefined; }'.
typecheck: src/pages/workspace/reportFields/CreateReportFieldsPage.tsx#L113
Type '{ children: ({ inputValues }: { inputValues: FormOnyxValues<"workspaceReportFieldForm">; }) => Element; ref: RefObject<FormRef>; style: ({ flex: number; } | { ...; })[]; ... 6 more ...; disablePressOnEnter: boolean; }' is not assignable to type 'IntrinsicAttributes & FormProps<"workspaceReportFieldForm"> & { children: ReactNode | ((props: { inputValues: FormOnyxValues<"workspaceReportFieldForm">; }) => ReactNode); ... 7 more ...; allowHTML?: boolean | undefined; }'.
typecheck: src/stories/Form.stories.tsx#L56
Property 'formState' does not exist on type 'FormProviderProps'.
typecheck: src/stories/Form.stories.tsx#L57
Property 'draftValues' does not exist on type 'FormProviderProps'.
typecheck: src/stories/Form.stories.tsx#L59
Property 'formState' does not exist on type 'FormProviderProps'.
typecheck: src/stories/Form.stories.tsx#L60
Property 'formState' does not exist on type 'FormProviderProps'.
typecheck: src/stories/Form.stories.tsx#L170
Property 'formState' does not exist on type 'FormProviderProps'.