Type Alias TransformActionContextBeta

TransformActionContext: DesktopActionContext & {
    callTransform: ((transform: string, extraContext: any) => Promise<any>);
    onTaskCanceled: (() => Promise<void>);
    onTaskComplete: ((result: any) => Promise<void>);
    taskID: string;
}

Context for a transformation action within the desktop environment.

Type declaration

  • callTransform: ((transform: string, extraContext: any) => Promise<any>)

    Function to call a transformation with additional context.

      • (transform, extraContext): Promise<any>
      • Parameters

        • transform: string
        • extraContext: any

        Returns Promise<any>

  • onTaskCanceled: (() => Promise<void>)

    Function to be called when the task is canceled.

      • (): Promise<void>
      • Returns Promise<void>

  • onTaskComplete: ((result: any) => Promise<void>)

    Function to be called when the task is completed.

      • (result): Promise<void>
      • Parameters

        • result: any

        Returns Promise<void>

  • BetataskID: string

    The task ID associated with the transformation.