functional-models
    Preparing search index...

    Type Alias ModelFactory<TModelExtensions, TModelInstanceExtensions, TModelFactoryOptionsExtensions>

    A function that has the ability to build models. (The models themselves, not instances of models) This is actually a "factory of model factories" but we're just calling it a ModelFactory.

    IMPORTANT: If you want to override and create extended Models/ModelInstances this is the place to do it. Create your own ModelFactory that adds additional functionality. For expanding a Model, you can just add it to the overall object. that ModelFactory produces.

    For expanding a ModelInstance, you will want to wrap the "create()" function of ModelType

    Type Parameters

    • TModelExtensions extends object = object
    • TModelInstanceExtensions extends object = object
    • TModelFactoryOptionsExtensions extends object = object

    Type declaration