Documentation
    Preparing search index...

    Function devWarn

    • Emit a developer warning or throw, depending on configuration.

      Parameters

      • message: string

        The warning or diagnostic message to emit.

      Returns void

      • No-ops outside dev environments to avoid user-facing logs.
      • If strict is enabled, throws an Error with the provided message.
      • Else if warnings is enabled, logs using console.warn.
      devWarn("Calling deprecated API X; use Y instead.");
      

      Error — when strict is true.