diff --git a/packages/charm/src/index.d.ts b/packages/charm/src/index.d.ts index da1c5fa..8336177 100644 --- a/packages/charm/src/index.d.ts +++ b/packages/charm/src/index.d.ts @@ -86,7 +86,7 @@ declare namespace Charm { * @param callback The function to run. * @returns A function that unsubscribes the callback. */ - function effect(callback: () => Cleanup | void): Cleanup; + function effect(callback: (cleanup: Cleanup) => Cleanup | void): Cleanup; /** * Returns the result of the function without subscribing to changes. If a