UNPKG

@schedule-tribe/doctor

Version:

This package provides TypeScript type definitions for handling Patient in Domain-Driven Design contexts

18 lines (17 loc) 453 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Doctor = void 0; const rich_domain_1 = require("rich-domain"); class Doctor extends rich_domain_1.Entity { constructor(props) { super(props); } static init(props) { return new Doctor(props); } static create(props) { return (0, rich_domain_1.Ok)(new Doctor(props)); } } exports.Doctor = Doctor; exports.default = Doctor;