Type alias TTaskSetupOptions
TTask
Setup
Options
: { abort
: ((text
: string) => void); ascii
: Ascii; ask
: ((text
: string, options
?: TAskOptions) => Promise<string | string[]>); error
: ((text
: string) => void); exec
: ((command
: string, options
?: TExecOptions) => Promise<TExecReturnValue>); fetchJson
: (<T>(url
: string, options
?: RequestInit) => Promise<TFetchReturnValue<T>>); fetchText
: ((url
: string, options
?: RequestInit) => Promise<TFetchReturnValue<string>>); logger
: Logger; shell
: TSubShell; subtask
: ((title
: string) => void); success
: ((text
: string) => void); theme
: Theme }
Type declaration
-
abort: ((text: string) => void)
-
- (text: string): void
-
Returns void
-
-
ask: ((text: string, options?: TAskOptions) => Promise<string | string[]>)
-
- (text: string, options?: TAskOptions): Promise<string | string[]>
-
Returns Promise<string | string[]>
-
error: ((text: string) => void)
-
- (text: string): void
-
Returns void
-
-
fetchJson: (<T>(url: string, options?: RequestInit) => Promise<TFetchReturnValue<T>>)
-
- <T>(url: string, options?: RequestInit): Promise<TFetchReturnValue<T>>
-
Parameters
-
url: string
-
Optional
options: RequestInit
-
fetchText: ((url: string, options?: RequestInit) => Promise<TFetchReturnValue<string>>)
-
- (url: string, options?: RequestInit): Promise<TFetchReturnValue<string>>
-
Parameters
-
url: string
-
Optional
options: RequestInit
-
-
-
subtask: ((title: string) => void)
-
- (title: string): void
-
Returns void
-
success: ((text: string) => void)
-
- (text: string): void
-
Returns void
-