• Preparing search index...
  • The search index is not available
Tango LowCode Builder
  • Tango LowCode Builder
  • @music163/tango-helpers
  • warning

Function warning

  • warning(condition, message): void
  • 如果条件为 false 则打印警告日志

    Parameters

    • condition: boolean

      打印警告日志的条件

    • message: string

      警告日志

    Returns void

    Example

    warning(truthyValue, 'This should not log a warning');
    

    Example

    warning(falsyValue, 'This should log a warning');
    

    See

    https://github.com/alexreardon/tiny-warning

    • Defined in packages/helpers/src/helpers/logger.ts:32

Settings

Member Visibility
Tango LowCode Builder
  • Loading...

Generated using TypeDoc