Initial commit (by create-cloudflare CLI)

This commit is contained in:
J-onasJones 2023-09-14 18:58:13 +02:00
commit 58a42872a0
1745 changed files with 741893 additions and 0 deletions

37
node_modules/exit-hook/index.d.ts generated vendored Normal file
View file

@ -0,0 +1,37 @@
/**
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;