Type alias TypeContext<T, Options, DependencyManager>

TypeContext<T, Options, DependencyManager>: {
    constrainedModel: T;
    dependencyManager: DependencyManager;
    options: Options;
    partOfProperty?: ConstrainedObjectPropertyModel;
}

Type Parameters

Type declaration

  • constrainedModel: T

    The specific constrained model that we are trying to find the type for

  • dependencyManager: DependencyManager

    Dependency manager that can be used to add custom dependencies to the rendering of the model, such as when using external types.

  • options: Options

    The underlying options provided to the generator

  • Optional partOfProperty?: ConstrainedObjectPropertyModel

    If the model is a property in an object model this can be used to conditionally change types based on property information.