client
@meeting-baas/sdk - Client API & Bridge / client
client
Functions
createBaasClient()
Call Signature
createBaasClient(
config):BaasClientV1Methods
Tree-shakeable client factory with type inference Creates a client object with only the methods you import TypeScript will infer available methods based on api_version
Parameters
| Parameter | Type |
|---|---|
config | BaasClientConfigV1 |
Returns
Call Signature
createBaasClient(
config):BaasClientV2Methods
Tree-shakeable client factory with type inference Creates a client object with only the methods you import TypeScript will infer available methods based on api_version
Parameters
| Parameter | Type |
|---|---|
config | BaasClientConfigV2 |
Returns
Call Signature
createBaasClient(
config):BaasClientVexaMethods
Tree-shakeable client factory with type inference Creates a client object with only the methods you import TypeScript will infer available methods based on api_version
Parameters
| Parameter | Type |
|---|---|
config | BaasClientConfigVexa |
Returns
Call Signature
createBaasClient(
config):BaasClientV2Methods|BaasClientVexaMethods|BaasClientV1Methods
Tree-shakeable client factory with type inference Creates a client object with only the methods you import TypeScript will infer available methods based on api_version
Parameters
| Parameter | Type |
|---|---|
config | BaasClientConfig |
Returns
BaasClientV2Methods | BaasClientVexaMethods | BaasClientV1Methods
Type Aliases
BaasClient
BaasClient<
V> =Vextends"v1"?BaasClientV1Methods:Vextends"v2"?BaasClientV2Methods:Vextends"vexa"?BaasClientVexaMethods:never
Conditional client type based on API version
Type Parameters
| Type Parameter |
|---|
V extends "v1" | "v2" | "vexa" |