@serenity-js/core
Version:
The core Serenity/JS framework, providing the Screenplay Pattern interfaces, as well as the test reporting and integration infrastructure
17 lines • 483 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Name = void 0;
const tiny_types_1 = require("tiny-types");
class Name extends tiny_types_1.TinyType {
value;
static fromJSON(v) {
return new Name(v);
}
constructor(value) {
super();
this.value = value;
(0, tiny_types_1.ensure)(this.constructor.name, value, (0, tiny_types_1.isDefined)());
}
}
exports.Name = Name;
//# sourceMappingURL=Name.js.map
;