Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(initialState?: boolean) {
if (isMissing(initialState)) initialState = false;
if (!isBoolean(initialState)) throw new TypeError("Boolean expected: initialState.");
this._signaled = !!initialState;
}
constructor(initialState = false) {
if (!isBoolean(initialState)) throw new TypeError("Boolean expected: initialState.");
this._signaled = initialState;
}