[]previous and next page

WarningListener

A function that receives the warnings of warn instead of console.warn.

A function that receives the warnings of warn instead of console.warn. Install one with setWarningListener.

Import#

ts
import type { WarningListener } from "@shadow-js/core/extend";

Signature#

ts
type WarningListener = (code: MessageCode, message: string) => void

Parameters#

Name Description
code The diagnostic code of the warning.
message The text of formatMessage for that code.