Type alias Infer<TEntriesModel, TExtraModel>

Infer<TEntriesModel, TExtraModel>: TExtraModel extends UcModel<any>
    ? InferExplicit<TEntriesModel> | {
        [key in ExtraKeys<TEntriesModel>]?: UcInfer<TExtraModel>
    }
    : InferExplicit<TEntriesModel>

Type of object inferred from the map model.

Type Parameters

  • TEntriesModel extends EntriesModel

    Per-entry model type.

  • TExtraModel extends UcModel | false = false

    Extra entries model type, or false to prohibit extra entries.

Generated using TypeDoc