chore: drop comments that restate the code
This commit is contained in:
@@ -1,14 +1,3 @@
|
||||
/**
|
||||
* RudderClient — the main entry point of `@rudder/sdk`; create it with
|
||||
* {@link createClient}.
|
||||
*
|
||||
* Composes the kernel domains (auth, player, catalog, storage, modules) and the HTTP transport every service uses to reach the API.
|
||||
*
|
||||
* The client builds a {@link RudderContext} first and injects it into every
|
||||
* domain, so they depend on that narrow surface rather than on the client
|
||||
* (which keeps the module graph acyclic).
|
||||
*/
|
||||
|
||||
import type {
|
||||
ResolvedRudderClientOptions,
|
||||
RudderClientOptions,
|
||||
@@ -102,7 +91,6 @@ export class RudderClient {
|
||||
this.runtimeStarted = false;
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
async startRuntimeAfterLogin(): Promise<void> {
|
||||
if (this.runtimeStarted) {
|
||||
this.invalidateAll();
|
||||
@@ -112,7 +100,6 @@ export class RudderClient {
|
||||
this.syncEngine.start();
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
stopRuntimeAfterLogout(): void {
|
||||
this.runtimeStarted = false;
|
||||
this.syncEngine.stop();
|
||||
@@ -132,7 +119,6 @@ export class RudderClient {
|
||||
}
|
||||
}
|
||||
|
||||
/** Creates a client. Only `projectKey` is required. */
|
||||
export function createClient(options: RudderClientOptions): RudderClient {
|
||||
return new RudderClient(options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user