Interface CodeContribution<Value>

Represents a code contribution that is being loaded or that is already loaded.

interface CodeContribution<Value> {
    error?: unknown;
    loading: boolean;
    value?: Value;
}

Type Parameters

  • Value = unknown

    Type of the loaded code contribution value

Properties

Properties

error?: unknown

If defined, loading of code contribution data failed.

loading: boolean

While true the code contribution data is being loaded. Then value and error are undefined. If false, loading code contribution data either succeeded or failed.

value?: Value

The loaded code contribution value or undefined while loading is true or if an error occurred.

Generated using TypeDoc