Fix the rest of TS errors in automations codebase

[MAILPOET-5714]
This commit is contained in:
Rostislav Wolny
2023-12-11 14:28:13 +01:00
committed by Aschepikov
parent cb7ae2a442
commit 8431ec33e1
3 changed files with 4 additions and 3 deletions

View File

@@ -1,11 +1,12 @@
import { Dispatch, SetStateAction, useState } from 'react';
import { Button, DropdownMenu } from '@wordpress/components';
import { ButtonProps } from '@wordpress/components/build-types/button/types';
import { chevronDown } from '@wordpress/icons';
import { __ } from '@wordpress/i18n';
import { StepMoreControlsType } from '../../types/filters';
type OptionButtonPropType = {
variant: Button.ButtonVariant;
variant: ButtonProps['variant'];
controls: StepMoreControlsType;
title: string;
onClick: (setIsBusy: Dispatch<SetStateAction<boolean>>) => void;

View File

@@ -6,7 +6,7 @@ export type FormTokenItem = {
};
export type FormTokenFieldProps = Omit<
WpFormTokenField.Props,
React.ComponentProps<typeof WpFormTokenField>,
'value' | 'suggestions' | 'onChange'
> & {
value: FormTokenItem[];

View File

@@ -1,7 +1,7 @@
import { PanelBody as WpPanelBody } from '@wordpress/components';
import { useEffect, useState } from 'react';
type Props = WpPanelBody.Props & {
type Props = React.ComponentProps<typeof WpPanelBody> & {
hasErrors?: boolean;
};