Skip to content

Commit bc9b816

Browse files
committed
remove no longer needed @ts-expect-error comments
1 parent ee56483 commit bc9b816

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

Diff for: src/abortsignal-timeout.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,16 @@ declare global {
1212

1313
/*#__PURE__*/
1414
export function isSupported(): boolean {
15-
return (
16-
'abort' in AbortSignal &&
17-
// @ts-expect-error `.timeout`
18-
typeof AbortSignal.timeout === 'function'
19-
)
15+
return 'abort' in AbortSignal && typeof AbortSignal.timeout === 'function'
2016
}
2117

2218
/*#__PURE__*/
2319
export function isPolyfilled(): boolean {
24-
// @ts-expect-error `.timeout`
2520
return AbortSignal.timeout === abortSignalTimeout
2621
}
2722

2823
export function apply(): void {
2924
if (!isSupported()) {
30-
// @ts-expect-error `.timeout`
3125
AbortSignal.timeout = abortSignalTimeout
3226
}
3327
}

0 commit comments

Comments
 (0)