Type alias ObtainSchemaGeneric<TSchema, alias>

ObtainSchemaGeneric<TSchema, alias>: TSchema extends Schema<infer EnforcedDocType, infer M, infer TInstanceMethods, infer TQueryHelpers, infer TVirtuals, infer TStaticMethods, infer TSchemaOptions, infer DocType>
    ? {
        DocType: DocType;
        EnforcedDocType: EnforcedDocType;
        M: M;
        TInstanceMethods: TInstanceMethods;
        TQueryHelpers: TQueryHelpers;
        TSchemaOptions: TSchemaOptions;
        TStaticMethods: TStaticMethods;
        TVirtuals: TVirtuals;
    }[alias]
    : unknown

Type Parameters

  • TSchema

    A generic of schema type instance.

  • alias extends "EnforcedDocType" | "M" | "TInstanceMethods" | "TQueryHelpers" | "TVirtuals" | "TStaticMethods" | "TSchemaOptions" | "DocType"

    Targeted generic alias.

Summary

Obtains schema Generic type by using generic alias.

Generated using TypeDoc