Interface DataTypeResolution<T>

Result from a method that can deliver either a value or an error in attempting to generate that value.

interface DataTypeResolution<T> {
    value?: T;
    errorMessage?: string;
}

Type Parameters

  • T

Properties

value?: T

If assigned, it is the resolved value. If undefined, the value failed to resolve and the errorMessage is setup.

errorMessage?: string

If assigned, the value failed to resolve and this is a description of what happened.

Generated using TypeDoc v0.25.12