Skip to content

Commit 681b64e

Browse files
committed
Add global type
1 parent 6c505ae commit 681b64e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,10 @@ export function captureStackTrace<S = unknown>(): Record<string, Thread<S>> {
211211
export function getThreadsLastSeen(): Record<string, number> {
212212
return native.getThreadsLastSeen();
213213
}
214+
215+
/**
216+
* Type for global object that may contain the callback.
217+
*/
218+
export type GlobalObjectWithCallback = {
219+
__get_thread_state_callback__?: () => object | undefined;
220+
};

0 commit comments

Comments
 (0)