@base44-preview/sdk 0.8.54-pr.332.30ac6b3 → 0.8.54-pr.333.b2eeefe
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.types.d.ts +6 -4
- package/package.json +1 -1
package/dist/client.types.d.ts
CHANGED
|
@@ -17,10 +17,12 @@ import type { FetchWithAuthInit } from "./utils/fetch-with-auth.js";
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateClientOptions {
|
|
19
19
|
/**
|
|
20
|
-
* Optional error handler that
|
|
20
|
+
* Optional error handler that the SDK calls when:
|
|
21
21
|
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
22
|
+
* - An API request fails.
|
|
23
|
+
* - A client can't connect to an {@link ActorsModule | actor}.
|
|
24
|
+
*
|
|
25
|
+
* Errors are usually {@linkcode Base44Error} instances. Check `error.status` for the HTTP status code. Returns `undefined` for network errors.
|
|
24
26
|
*/
|
|
25
27
|
onError?: (error: Error) => void;
|
|
26
28
|
/**
|
|
@@ -127,7 +129,7 @@ export interface Base44Client {
|
|
|
127
129
|
appLogs: AppLogsModule;
|
|
128
130
|
/** {@link AppModule | App module} for reading the app's own public configuration. */
|
|
129
131
|
app: AppModule;
|
|
130
|
-
/** {@link ActorsModule | Actors module} for
|
|
132
|
+
/** {@link ActorsModule | Actors module} for connecting to actor sessions and exchanging messages with actors. */
|
|
131
133
|
actors: ActorsModule;
|
|
132
134
|
/** {@link AuthModule | Auth module} for user authentication and management. */
|
|
133
135
|
auth: AuthModule;
|