ts-asserts
Version:
The package for assert data in typescript.
15 lines (14 loc) • 437 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.NotNullOrUndefinedAssert = void 0;
const ts_checkers_1 = require("ts-checkers");
/**
*
* @param input type is any
*/
function NotNullOrUndefinedAssert(input) {
if (ts_checkers_1.Is.NullOrUndefined(input)) {
throw new TypeError('Input must be not null or undefined!');
}
}
exports.NotNullOrUndefinedAssert = NotNullOrUndefinedAssert;