UNPKG

@hyperledger/cactus-common

Version:

Universal library used by both front end and back end components of Cactus. Aims to be a developer swiss army knife.

14 lines (13 loc) 509 B
export declare class Bools { /** * Determines if a value is strictly a boolean `true` or `false`. Anything else * will result in the method returning `false`. * * Useful in cases where you have an optional boolean parameter that you need * to assign a default value to by determining if it had been set or not. * * @param val The value to be decided on whether it's strictly boolean `true` * or `false`. */ static isBooleanStrict(val: unknown): boolean; }