Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
method Result.prototype.warn
Re-export
import { Result } from "https://deno.land/x/postcss@8.4.16/lib/postcss.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

Created warning.