Skip to content

Commit

Permalink
fix: return typing of global functions (#1081)
Browse files Browse the repository at this point in the history
  • Loading branch information
daibhin authored Mar 14, 2024
1 parent 18479b4 commit f6442ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/extensions/replay/sessionrecording.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export class SessionRecording {
private _sampleRate: number | null = null
private _minimumDuration: number | null = null

private _fullSnapshotTimer?: number
private _fullSnapshotTimer?: ReturnType<typeof setInterval>

// Util to help developers working on this feature manually override
_forceAllowLocalhostNetworkCapture = false
Expand Down
2 changes: 1 addition & 1 deletion src/request-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export class RequestQueue {
// We start in a paused state and only start flushing when enabled by the parent
private isPaused: boolean = true
private queue: QueuedRequestOptions[] = []
private flushTimeout?: number // to become interval for reference to clear later
private flushTimeout?: ReturnType<typeof setTimeout>
private flushTimeoutMs = 3000
private sendRequest: (req: QueuedRequestOptions) => void

Expand Down
2 changes: 1 addition & 1 deletion src/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ const _fetch = (options: RequestOptions) => {
}

const url = options.url
let aborter: { signal: any; timeout: number } | null = null
let aborter: { signal: any; timeout: ReturnType<typeof setTimeout> } | null = null

if (AbortController) {
const controller = new AbortController()
Expand Down

0 comments on commit f6442ef

Please sign in to comment.