Skip to content

Commit 56a396e

Browse files
committed
ignore ts errors
1 parent ef92395 commit 56a396e

File tree

1 file changed

+2
-0
lines changed
  • packages/svelte/src/internal/client/resource-management

1 file changed

+2
-0
lines changed

packages/svelte/src/internal/client/resource-management/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { teardown } from '../reactivity/effects.js';
66
export function dispose(...disposables) {
77
teardown(() => {
88
for (const disposable of disposables) {
9+
// @ts-ignore Symbol.dispose may or may not exist as far as TypeScript is concerned
910
disposable?.[Symbol.dispose]();
1011
}
1112
});
@@ -18,6 +19,7 @@ export function dispose(...disposables) {
1819
* @param {any} value
1920
*/
2021
export function disposable(value) {
22+
// @ts-ignore Symbol.dispose may or may not exist as far as TypeScript is concerned
2123
if (value != null && !value[Symbol.dispose]) {
2224
throw new TypeError('Symbol(Symbol.dispose) is not a function');
2325
}

0 commit comments

Comments
 (0)