How to use the @esfx/internal-guards.isBoolean function in @esfx/internal-guards

To help you get started, we’ve selected a few @esfx/internal-guards examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github esfx / esfx / packages / async-manualresetevent / src / index.ts View on Github external
constructor(initialState?: boolean) {
        if (isMissing(initialState)) initialState = false;
        if (!isBoolean(initialState)) throw new TypeError("Boolean expected: initialState.");
        this._signaled = !!initialState;
    }
github esfx / esfx / packages / async-autoresetevent / src / index.ts View on Github external
constructor(initialState = false) {
        if (!isBoolean(initialState)) throw new TypeError("Boolean expected: initialState.");
        this._signaled = initialState;
    }

@esfx/internal-guards

This package provides internal utilities for @esfx and is not intended for use in user-code.

Apache-2.0
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis

Similar packages