Plugins

Covers Engine Plugin SDK 2.0.0 · Interface Plugin SDK 0.2.0

TaskConfigProps

Props passed to a task configuration component.

Import

import type { TaskConfigProps } from "@dartwic/interface-sdk/tasks";

Declaration

export interface TaskConfigProps {
    task: any;
    operation: (...args: any[]) => Promise<any>;
    onSaved?: () => Promise<void> | void;
    onClose?: () => Promise<void> | void;
    openSource?: (...args: any[]) => void;
    taskEditor?: TaskConfigRegistration | null;
}

Members

NameTypeRequirementDescription
taskanyRequired
operation(...args: any[]) => Promise<any>Required
onSaved() => Promise<void> | voidOptional
onClose() => Promise<void> | voidOptional
openSource(...args: any[]) => voidOptional
taskEditorTaskConfigRegistration | nullOptional