/* IMPORT */ import { OWNER } from '../objects/superroot' import { lazyArrayPush } from '~/lazy' import type { CleanupFunction, Callable } from '~/types' /* MAIN */ const cleanup = (fn: Callable): void => { lazyArrayPush(OWNER, 'cleanups', fn) } /* EXPORT */ export default cleanup