• Preparing search index...
  • The search index is not available
lib.reviews
  • lib.reviews
  • dal/lib/model-handle
  • getRegisteredModel

Function getRegisteredModel

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

    Look up a registered model by table name using the bootstrap resolver. Used by both model handles and the createModel proxy system.

    Type Parameters

    • TRecord extends JsonObject = JsonObject
    • TVirtual extends JsonObject = JsonObject

    Parameters

    • tableName: string

      Table name or registry key to look up.

    Returns ModelConstructor<TRecord, TVirtual>

    The registered model constructor.

    Throws

    Error if model not found or bootstrap not initialized.

    • Defined in dal/lib/model-handle.ts:51

Settings

Member Visibility
lib.reviews
  • Loading...

Generated using TypeDoc