mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
14 lines
348 B
TypeScript
14 lines
348 B
TypeScript
import warning = require("warning");
|
|
|
|
// this will pass without warning.
|
|
warning(true, 'Warning, read all about it');
|
|
|
|
// these will cause a warning.
|
|
warning(false, 'Some other warning');
|
|
warning(0, 'Some other warning');
|
|
warning('', 'Some other warning');
|
|
|
|
// handle extra variables.
|
|
warning(true, 'Warning, read all about it', 37, {}, 'hello');
|
|
|