cleanup-protocol
v1.0.2
Published
This protocol makes sure classes have a cleanup function.
Downloads
5
Readme
To install with eslint plugin
npm i estlint-plugin-enforce-cleanup --save-dev
npm i cleanup-protocol
To make sure classes are being cleaned up, this package provide a CleanupProtocol
interface. This package work with eslint-plugin-enforce-cleanup
Usage:
class MyClass implemenets CleanupProtocol {
// ...
cleanup():void {
// implement cleanup code here
}
}