Skip to content

Commit ac29427

Browse files
committed
Fix missing jsdoc for overrides
1 parent 0ad1eeb commit ac29427

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

src/index.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,26 @@ function getNativeModule(): Native {
308308

309309
const native = getNativeModule();
310310

311+
/**
312+
* Registers the current thread with the native module.
313+
*
314+
* This should be called on every thread that you want to capture stack traces from.
315+
*
316+
* @param threadName The name of the thread
317+
*
318+
* threadName defaults to the `threadId` if not provided.
319+
*/
311320
export function registerThread(threadName?: string): void;
321+
/**
322+
* Registers the current thread with the native module.
323+
*
324+
* This should be called on every thread that you want to capture stack traces from.
325+
*
326+
* @param storageOrThread Either the name of the thread, or an object containing an AsyncLocalStorage instance and optional storage key.
327+
* @param threadName The name of the thread, if the first argument is an object.
328+
*
329+
* threadName defaults to the `threadId` if not provided.
330+
*/
312331
export function registerThread(storageOrThread: AsyncStorageArgs | string, threadName?: string): void;
313332
/**
314333
* Registers the current thread with the native module.

0 commit comments

Comments
 (0)