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 (10 loc) 315 B
import { ensure, isDefined, TinyType } from 'tiny-types'; export class Category extends TinyType { static fromJSON(v: string): Category { return new Category(v); } constructor(public readonly value: string) { super(); ensure(this.constructor.name, value, isDefined()); } }