UNPKG

@serenity-js/core

Version:

The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure

13 lines 334 B
import { ensure, isDefined, TinyType } from 'tiny-types'; export class Name extends TinyType { value; static fromJSON(v) { return new Name(v); } constructor(value) { super(); this.value = value; ensure(this.constructor.name, value, isDefined()); } } //# sourceMappingURL=Name.js.map