Skip to content

Commit

Permalink
Add a code example for Logger.silent (#3192)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Oct 26, 2021
1 parent a48cd42 commit 875d7c0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion js-api-doc/logger/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,19 @@ export interface Logger {
* @compatibility dart: "1.43.0", node: false
*/
export namespace Logger {
/** A [[Logger]] that silently ignores all warnings and debug messages. */
/**
* A [[Logger]] that silently ignores all warnings and debug messages.
*
* @example
*
* ```js
* const sass = require('sass');
*
* const result = sass.renderSync({
* file: 'input.scss',
* logger: sass.Logger.silent,
* });
* ```
*/
export const silent: Logger;
}

0 comments on commit 875d7c0

Please sign in to comment.