rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
78 lines (36 loc) • 1.19 kB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [rc-js-util](./rc-js-util.md) > [SharedObjectCleanup](./rc-js-util.sharedobjectcleanup.md) > [registerCleanup](./rc-js-util.sharedobjectcleanup.registercleanup.md)
## SharedObjectCleanup.registerCleanup() method
**Signature:**
```typescript
static registerCleanup(sharedObject: IManagedObject & IPointer, cleanup: SharedObjectCleanup, options: InstanceType<typeof SharedObjectCleanup.Options>): void;
```
## Parameters
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead>
<tbody><tr><td>
sharedObject
</td><td>
[IManagedObject](./rc-js-util.imanagedobject.md) & [IPointer](./rc-js-util.ipointer.md)
</td><td>
</td></tr>
<tr><td>
cleanup
</td><td>
[SharedObjectCleanup](./rc-js-util.sharedobjectcleanup.md)
</td><td>
</td></tr>
<tr><td>
options
</td><td>
InstanceType<typeof [SharedObjectCleanup.Options](./rc-js-util.sharedobjectcleanup.options.md)<!-- -->>
</td><td>
</td></tr>
</tbody></table>
**Returns:**
void