chore: fix all Typescript warnings (#8618)

* [CAL-1517] fix all Typescript warnings

* solve conflicts

* Update stripeCheckoutSession.handler.ts

Parse is a guard, so even though the variable is unused the parse itself is needed.

* Update ToolbarPlugin.tsx

Don't change dependency tree

---------

Co-authored-by: gitstart-calcom <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-06-06 11:59:57 +00:00
1 parent 87e1ad7115
commit 2dbc73c75b
106 files changed
+425 -319

No files matched your search

+1 -1
View File
@@ -67,7 +67,7 @@ export function UnstyledSelect<
Option,
IsMulti extends boolean = false,
Group extends GroupBase<Option> = GroupBase<Option>
>({ className, ...props }: SelectProps<Option, IsMulti, Group>) {
>({ ...props }: SelectProps<Option, IsMulti, Group>) {
return (
<ReactSelect
{...props}
+2 -2
View File
@@ -90,7 +90,7 @@ const InputField = forwardRef<HTMLInputElement, InputFieldProps>(function InputF
<Alert
className="mt-1"
severity="error"
message={<>{methods.formState.errors[props.name]!.message}</>}
message={<>{methods.formState.errors[props.name]?.message}</>}
/>
)}
</div>
@@ -186,7 +186,7 @@ export const TextAreaField = forwardRef<HTMLTextAreaElement, TextAreaFieldProps>
<Alert
className="mt-1"
severity="error"
message={<>{methods.formState.errors[props.name]!.message}</>}
message={<>{methods.formState.errors[props.name]?.message}</>}
/>
)}
</div>