Rocky_Mountain_Vending/.pnpm-store/v10/files/37/774f5645fd65ed251b7ec7025101d061e1061616e3e0ceb745db9afd7c6718dcab30d532998f3054d97fc813501e3b5cc774b4a8d507edf3b363e1ac7d112f
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

37 lines
728 B
Text

/**
Run some code when the process exits.
The `process.on('exit')` event doesn't catch all the ways a process can exit.
This package is useful for cleaning up before exiting.
@param callback - The callback to execute when the process exits.
@returns A function that removes the hook when called.
@example
```
import exitHook = require('exit-hook');
exitHook(() => {
console.log('Exiting');
});
// You can add multiple hooks, even across files
exitHook(() => {
console.log('Exiting 2');
});
throw new Error('🦄');
//=> 'Exiting'
//=> 'Exiting 2'
// Removing an exit hook:
const unsubscribe = exitHook(() => {});
unsubscribe();
```
*/
declare function exitHook(callback: () => void): () => void;
export = exitHook;