• Preparing search index...
  • The search index is not available
lib.reviews
  • lib.reviews
  • bootstrap/dal
  • getModel

Function getModel

  • getModel<TRecord extends JsonObject, TVirtual extends JsonObject = JsonObject>(
        tableName: string,
    ): ModelConstructor<
        TRecord,
        TVirtual,
        ModelInstance<TRecord, TVirtual>,
        string,
    >

    Fetch a registered model constructor by table name without throwing when it is absent.

    Type Parameters

    • TRecord extends JsonObject
    • TVirtual extends JsonObject = JsonObject

    Parameters

    • tableName: string

      Table name or registry key to look up.

    Returns ModelConstructor<TRecord, TVirtual, ModelInstance<TRecord, TVirtual>, string>

    The registered constructor or null when missing.

    • Defined in bootstrap/dal.ts:245

Settings

Member Visibility
lib.reviews
  • Loading...

Generated using TypeDoc