How to use the tiny-types.hasLengthOf 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 / domain / model / Operator.ts View on Github external
protected constructor(public readonly value: string) {
        super();
        ensure(Operator.name, value, isDefined(), isString(), hasLengthOf(1));
    }
}