typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
22 lines (18 loc) • 645 B
TypeScript
/// <reference path="../../../globals.d.ts" />
declare module goog.proto2.Util {
/**
* Asserts that the given condition is true, if and only if the PBCHECK
* flag is on.
*
* @param {*} condition The condition to check.
* @param {string=} opt_message Error message in case of failure.
* @throws {Error} Assertion failed, the condition evaluates to false.
*/
function assert(condition: any, opt_message?: string): void;
/**
* Returns true if debug assertions (checks) are on.
*
* @return {boolean} The value of the PBCHECK constant.
*/
function conductChecks(): boolean;
}