UNPKG

tsbase

Version:

Base class libraries for TypeScript

12 lines (11 loc) 327 B
import { Result } from '../Result/Result'; /** * Wraps an async void function returning a `Result` */ export interface IAsyncCommand { AsyncCommand: () => Promise<void>; /** * Executes an async command returning a `Result`, capturing any errors as `ErrorMessages` */ Execute(): Promise<Result<null>>; }