Skip to content

Commit a8cc773

Browse files
committed
fix: add scheduler type declaration for globalThis
1 parent c343bd7 commit a8cc773

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/cloudflare/internal/access-jwt.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ const CACHE_TTL_MS = 60 * 60 * 1000; // 1 hour
1515
const RETRY_DELAY_MS = 5000;
1616
const MAX_RETRIES = 3;
1717

18+
declare global {
19+
// eslint-disable-next-line no-var
20+
var scheduler: {
21+
wait: (delay: number, options?: { signal?: AbortSignal }) => Promise<void>;
22+
};
23+
}
24+
1825
export type AccessJwtErrorCode =
1926
| 'ERR_JWT_MISSING'
2027
| 'ERR_JWT_MALFORMED'

0 commit comments

Comments
 (0)