Fix the rest of TS errors in automations codebase
[MAILPOET-5714]
This commit is contained in:
committed by
Aschepikov
parent
cb7ae2a442
commit
8431ec33e1
@@ -1,11 +1,12 @@
|
|||||||
import { Dispatch, SetStateAction, useState } from 'react';
|
import { Dispatch, SetStateAction, useState } from 'react';
|
||||||
import { Button, DropdownMenu } from '@wordpress/components';
|
import { Button, DropdownMenu } from '@wordpress/components';
|
||||||
|
import { ButtonProps } from '@wordpress/components/build-types/button/types';
|
||||||
import { chevronDown } from '@wordpress/icons';
|
import { chevronDown } from '@wordpress/icons';
|
||||||
import { __ } from '@wordpress/i18n';
|
import { __ } from '@wordpress/i18n';
|
||||||
import { StepMoreControlsType } from '../../types/filters';
|
import { StepMoreControlsType } from '../../types/filters';
|
||||||
|
|
||||||
type OptionButtonPropType = {
|
type OptionButtonPropType = {
|
||||||
variant: Button.ButtonVariant;
|
variant: ButtonProps['variant'];
|
||||||
controls: StepMoreControlsType;
|
controls: StepMoreControlsType;
|
||||||
title: string;
|
title: string;
|
||||||
onClick: (setIsBusy: Dispatch<SetStateAction<boolean>>) => void;
|
onClick: (setIsBusy: Dispatch<SetStateAction<boolean>>) => void;
|
||||||
|
@@ -6,7 +6,7 @@ export type FormTokenItem = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type FormTokenFieldProps = Omit<
|
export type FormTokenFieldProps = Omit<
|
||||||
WpFormTokenField.Props,
|
React.ComponentProps<typeof WpFormTokenField>,
|
||||||
'value' | 'suggestions' | 'onChange'
|
'value' | 'suggestions' | 'onChange'
|
||||||
> & {
|
> & {
|
||||||
value: FormTokenItem[];
|
value: FormTokenItem[];
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
import { PanelBody as WpPanelBody } from '@wordpress/components';
|
import { PanelBody as WpPanelBody } from '@wordpress/components';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
|
|
||||||
type Props = WpPanelBody.Props & {
|
type Props = React.ComponentProps<typeof WpPanelBody> & {
|
||||||
hasErrors?: boolean;
|
hasErrors?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user