Skip to main content
EmitWarningOptions - node__process.d.ts - Node documentation
interface EmitWarningOptions

Usage in Deno

```typescript import { type EmitWarningOptions } from "node:node__process.d.ts"; ```

Properties

optional
type: string | undefined
When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted.
optional
code: string | undefined
A unique identifier for the warning instance being emitted.
optional
ctor: Function | undefined
When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace.
optional
detail: string | undefined
Additional text to include with the error.