We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee56483 commit bc9b816Copy full SHA for bc9b816
src/abortsignal-timeout.ts
@@ -12,22 +12,16 @@ declare global {
12
13
/*#__PURE__*/
14
export function isSupported(): boolean {
15
- return (
16
- 'abort' in AbortSignal &&
17
- // @ts-expect-error `.timeout`
18
- typeof AbortSignal.timeout === 'function'
19
- )
+ return 'abort' in AbortSignal && typeof AbortSignal.timeout === 'function'
20
}
21
22
23
export function isPolyfilled(): boolean {
24
25
return AbortSignal.timeout === abortSignalTimeout
26
27
28
export function apply(): void {
29
if (!isSupported()) {
30
31
AbortSignal.timeout = abortSignalTimeout
32
33
0 commit comments