diff --git a/test-typings/debounce.ts b/test-typings/debounce.ts index 83199b52..1c201a6d 100644 --- a/test-typings/debounce.ts +++ b/test-typings/debounce.ts @@ -165,24 +165,6 @@ import { debounce } from '../src/debounce'; ); } -// Scope and Domain are not allowed in source -{ - const target = createEvent(); - - const domain = createDomain(); - const scope = fork(); - - // @ts-expect-error - debounce({ source: domain, timeout: 0 }); - // @ts-expect-error - debounce({ source: scope, timeout: 0 }); - - // @ts-expect-error - debounce({ source: domain, timeout: 0, target }); - // @ts-expect-error - debounce({ source: scope, timeout: 0, target }); -} - // Scope and Domain are not allowed in target { const source = createEvent(); diff --git a/test-typings/once.ts b/test-typings/once.ts index d8662f5a..c1f7d211 100644 --- a/test-typings/once.ts +++ b/test-typings/once.ts @@ -23,24 +23,6 @@ import { once } from '../src/once'; expectType>(once({ source: createStore('') })); } -// Does not allow scope or domain as source or reset -{ - // @ts-expect-error - once(createDomain()); - // @ts-expect-error - once(fork()); - - // @ts-expect-error - once({ source: createDomain() }); - // @ts-expect-error - once({ source: fork() }); - - // @ts-expect-error - once({ source: createEvent(), reset: createDomain() }); - // @ts-expect-error - once({ source: createEvent(), reset: fork() }); -} - // Correctly passes through complex types { const source = createEvent<'string' | false>(); diff --git a/test-typings/time.ts b/test-typings/time.ts index ba854f39..556d4c36 100644 --- a/test-typings/time.ts +++ b/test-typings/time.ts @@ -70,6 +70,4 @@ import { time } from '../src/time'; // @ts-expect-error time({ clock: fn }); - // @ts-expect-error - time({ clock: domain }); }