LoggerWarnOptions

LoggerWarnOptions: ({
    deprecation: true;
    deprecationType: Deprecation;
} | {
    deprecation: false;
}) & {
    span?: SourceSpan;
    stack?: string;
}

The options passed to warn.

  • deprecation: Whether this is a deprecation warning.

  • deprecationType: The type of deprecation. Only set if deprecation is true.

  • span: The location in the Sass source code that generated this warning. This may be unset if the warning didn't come from Sass source, for example if it's from a deprecated JavaScript option.

  • stack: The Sass stack trace at the point the warning was issued. This may be unset if the warning didn't come from Sass source, for example if it's from a deprecated JavaScript option.