UNPKG

@credo-ts/core

Version:

<p align="center"> <br /> <img alt="Credo Logo" src="https://github.com/openwallet-foundation/credo-ts/blob/c7886cb8377ceb8ee4efe8d264211e561a75072d/images/credo-logo.png" height="250px" /> </p> <h1 align="center"><b>Credo - Core</b></h1

26 lines (22 loc) • 663 B
import { BaseRecord } from "../../../storage/BaseRecord.mjs"; import { uuid } from "../../../utils/uuid.mjs"; //#region src/modules/generic-records/repository/GenericRecord.ts var GenericRecord = class GenericRecord extends BaseRecord { constructor(props) { super(); this.type = GenericRecord.type; if (props) { this.id = props.id ?? uuid(); this.createdAt = props.createdAt ?? /* @__PURE__ */ new Date(); this.content = props.content; this._tags = props.tags ?? {}; } } getTags() { return { ...this._tags }; } }; GenericRecord.type = "GenericRecord"; //#endregion export { GenericRecord }; //# sourceMappingURL=GenericRecord.mjs.map