Skip to content

Commit fb557d1

Browse files
committed
Add docstring
1 parent ae1f4db commit fb557d1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

packages/minimal/src/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,14 @@ export function withScope(callback: (scope: Scope) => void): void {
180180
callOnHub<void>('withScope', callback);
181181
}
182182

183-
/** */
183+
/**
184+
* Executes a callback on the hub that is given a client and scope if they exist. If no client
185+
* exists, the callback will not execute.
186+
*
187+
* @param callback that is called with client and scope.
188+
* @hidden
189+
*/
190+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
184191
export function _withClient(callback: (client: Client, scope: Scope | undefined) => void): void {
185192
callOnHub<void>('_withClient', callback);
186193
}

0 commit comments

Comments
 (0)