Skip to content

js-bao-wss-client


js-bao-wss-client / TypedModelConstructor

Type Alias: TypedModelConstructor<TModel> ​

TypedModelConstructor<TModel> = (attrs?) => TModel & typeof BaseModel & object

Helper type that preserves the instance + static typing of schema-built models. Use this to annotate models passed into JsBaoClient so constructor + statics stay typed.

Type Declaration ​

modelName? ​

optional modelName?: string

Type Parameters ​

TModel ​

TModel extends BaseModel = BaseModel

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30