We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34a55f8 commit cec717aCopy full SHA for cec717a
1 file changed
packages/rootless/README.md
@@ -111,10 +111,10 @@ dispose()
111
### Definition
112
113
```ts
114
-type runWithRootReturn<T> = T extends void | undefined | null
115
- ? Dispose
116
- : [returns: T, dispose: Dispose];
117
-const createDisposable = <T>(fn: () => T, detachedOwner?: Owner): runWithRootReturn<T>
+export function createDisposable(
+ fn: (dispose: VoidFunction) => void,
+ ...owners: (Owner | null)[]
+): VoidFunction
118
```
119
120
## `createSingletonRoot`
0 commit comments