interface EmitWarningOptions {
    code?: string;
    ctor?: Function;
    detail?: string;
    type?: string;
}

Properties

code?: string

A unique identifier for the warning instance being emitted.

ctor?: Function

When warning is a string, ctor is an optional function used to limit the generated stack trace.

process.emitWarning
detail?: string

Additional text to include with the error.

type?: string

When warning is a string, type is the name to use for the type of warning being emitted.

'Warning'
MMNEPVFCICPMFPCPTTAAATR