replaces js interfaces with types

This commit is contained in:
Mose Müller
2024-01-16 12:57:35 +01:00
parent 0e9832e2f1
commit 0ecaeac3fb
12 changed files with 24 additions and 24 deletions

View File

@@ -6,7 +6,7 @@ import { getIdFromFullAccessPath } from '../utils/stringUtils';
import { LevelName } from './NotificationsComponent';
import { WebSettingsContext } from '../WebSettings';
interface AsyncMethodProps {
type AsyncMethodProps = {
name: string;
parentPath: string;
parameters: Record<string, string>;
@@ -14,7 +14,7 @@ interface AsyncMethodProps {
docString?: string;
hideOutput?: boolean;
addNotification: (message: string, levelname?: LevelName) => void;
}
};
export const AsyncMethodComponent = React.memo((props: AsyncMethodProps) => {
const { name, parentPath, docString, value: runningTask, addNotification } = props;