diff --git a/src/createReactivityAdapter.ts b/src/createReactivityAdapter.ts index ac96a29b..0ade3fdc 100644 --- a/src/createReactivityAdapter.ts +++ b/src/createReactivityAdapter.ts @@ -1,7 +1,7 @@ import type ReactivityAdapter from './types/ReactivityAdapter' -import type { Signal } from './types/ReactivityAdapter' +import type { Dependency } from './types/ReactivityAdapter' -export default function createReactivityAdapter( +export default function createReactivityAdapter( definition: ReactivityAdapter, ) { return definition diff --git a/src/types/ReactivityAdapter.ts b/src/types/ReactivityAdapter.ts index 4f2f2037..3666e1f2 100644 --- a/src/types/ReactivityAdapter.ts +++ b/src/types/ReactivityAdapter.ts @@ -1,10 +1,10 @@ -export interface Signal { +export interface Dependency { depend(): void, notify(): void, } -export default interface ReactivityAdapter { +export default interface ReactivityAdapter { create(): T, - onDispose?(callback: () => void, signal: T): void, + onDispose?(callback: () => void, Dependency: T): void, isInScope?(): boolean, }