Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
method default.prototype.warn
import { default } from "https://deno.land/x/postcss@8.4.16/lib/result.d.ts";

Creates an instance of Warning and adds it to Result#messages.

if (decl.important) {
  result.warn('Avoid !important', { node: decl, word: '!important' })
}

Parameters

message: string

Warning message.

optional
options: WarningOptions

Warning options.

Returns

Warning

Created warning.