Update cleanup() docs

This commit is contained in:
Aaron Smith 2023-09-27 10:33:38 +01:00
parent bbda0426da
commit 3959f5119e

View file

@ -8,6 +8,11 @@ Runs a callback anytime a reactive scope is reran or destroyed.
```lua
function cleanup(callback: () -> ())
function cleanup(obj: Destroyable)
function cleanup(obj: Disconnectable)
type Destroyable = { destroy: () -> () }
type Disconnectable = { disconnect: () -> () }
```
- **Example**