@junobuild/core 0.0.50 → 0.0.51
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/types/index.d.ts
CHANGED
|
@@ -15,10 +15,18 @@ export * from './types/subscription.types';
|
|
|
15
15
|
/**
|
|
16
16
|
* Initializes Juno with the provided optional environment parameters.
|
|
17
17
|
* If no environment is provided, the variables injected by the Vite or NextJS plugins will be used.
|
|
18
|
+
* @deprecated Use {@link initSatellite} instead.
|
|
18
19
|
* @param {UserEnvironment} [userEnv] - The optional user environment configuration.
|
|
19
20
|
* @returns {Promise<Unsubscribe[]>} A promise that resolves to an array of unsubscribe functions.
|
|
20
21
|
*/
|
|
21
22
|
export declare const initJuno: (userEnv?: UserEnvironment) => Promise<Unsubscribe[]>;
|
|
23
|
+
/**
|
|
24
|
+
* Initializes a Juno satellite with the provided optional environment parameters.
|
|
25
|
+
* If no environment is provided, the variables injected by the Vite or NextJS plugins will be used.
|
|
26
|
+
* @param {UserEnvironment} [userEnv] - The optional user environment configuration.
|
|
27
|
+
* @returns {Promise<Unsubscribe[]>} A promise that resolves to an array of unsubscribe functions.
|
|
28
|
+
*/
|
|
29
|
+
export declare const initSatellite: (userEnv?: UserEnvironment) => Promise<Unsubscribe[]>;
|
|
22
30
|
/**
|
|
23
31
|
* Subscribes to authentication state changes. i.e. each time a user signs in or signs out, the callback will be triggered.
|
|
24
32
|
* @param {function(User | null): void} callback - The callback function to execute when the authentication state changes.
|