@shopify/cli-kit
Version:
A set of utilities, interfaces, and models that are common across all the platform features
12 lines (11 loc) • 468 B
TypeScript
import { TokenizedString } from '../../../../public/node/output.js';
import React from 'react';
interface SingleTaskProps<T> {
title: TokenizedString;
task: (updateStatus: (status: TokenizedString) => void) => Promise<T>;
onComplete?: (result: T) => void;
onAbort?: () => void;
noColor?: boolean;
}
declare const SingleTask: <T>({ task, title, onComplete, onAbort, noColor }: SingleTaskProps<T>) => React.JSX.Element | null;
export { SingleTask };