Skip to main content
StartupSnapshot.addSerializeCallback - node__v8.d.ts - Node documentation
method StartupSnapshot.addSerializeCallback

Usage in Deno

```typescript import { type StartupSnapshot } from "node:node__v8.d.ts"; ```
StartupSnapshot.addSerializeCallback(
data?: any,
): void
Add a callback that will be called when the Node.js instance is about to get serialized into a snapshot and exit. This can be used to release resources that should not or cannot be serialized or to convert user data into a form more suitable for serialization.

Parameters

optional
data: any

Return Type

void