How to use the tiny-types.isNumber function in tiny-types

To help you get started, weā€™ve selected a few tiny-types 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 jan-molak / serenity-js / examples / calculator-app / src / rest-api / model / Result.ts View on Github external
constructor(public readonly expression: Expression, public readonly value: number) {
        super();
        ensure(Expression.name, expression, isDefined());
        ensure('Result value', value, isDefined(), isNumber());
    }
}
github jan-molak / serenity-js / examples / calculator-app / src / domain / model / Operand.ts View on Github external
constructor(public readonly value: number) {
        super();
        ensure(Operand.name, value, isDefined(), isNumber());
    }
}