Rush StackShopBlogEvents
Skip to main content

Home > @rushstack/operation-graph > IOperationState

IOperationState interface

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Interface contract for a single state of an operation.

Signature:

export interface IOperationState 

Properties

Property

Modifiers

Type

Description

error

OperationError | undefined

(BETA) The error, if the status is OperationStatus.Failure.

hasBeenRun

boolean

(BETA) Whether the operation has been run at least once.

status

OperationStatus

(BETA) The status code for the operation.

stopwatch

Stopwatch

(BETA) Timing information for the operation.