Client
A client that can be extended with plugins.
The Client type represents a client object that can be built up through
the application of one or more plugins. It provides a use method to
apply plugins, either synchronously (returning a new Client) or
asynchronously (returning an AsyncClient).
Type Declaration
| Name | Type | Description |
|---|---|---|
use() | <TOutput>(plugin) => TOutput extends Promise<infer U> ? AsyncClient<U extends object ? U : never> : Client<TOutput> | Applies a plugin to extend or transform the client. |
Type Parameters
| Type Parameter | Description |
|---|---|
TSelf extends object | The current shape of the client object including all applied plugins. |