@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
1 lines • 941 B
Source Map (JSON)
{"version":3,"file":"W3cV2TermsOfUse.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cV2TermsOfUse.ts"],"sourcesContent":["import { plainToClassFromExist } from 'class-transformer'\nimport { IsString } from 'class-validator'\n\nexport interface W3cV2TermsOfUseOptions {\n type: string\n [property: string]: unknown\n}\n\n/**\n * Represents a terms of use.\n *\n * @see https://www.w3.org/TR/vc-data-model-2.0/#terms-of-use\n */\nexport class W3cV2TermsOfUse {\n public constructor(options: W3cV2TermsOfUseOptions) {\n if (options) {\n const { type, ...rest } = options\n\n plainToClassFromExist(this, rest)\n\n this.type = type\n }\n }\n\n @IsString()\n public type!: string;\n\n [property: string]: unknown\n}\n"],"mappings":";;;;;;;;;;;;;AAaA,IAAa,kBAAb,MAA6B;CAC3B,AAAO,YAAY,SAAiC;AAClD,MAAI,SAAS;GACX,MAAM,EAAE,MAAM,GAAG,SAAS;AAE1B,yBAAsB,MAAM,KAAK;AAEjC,QAAK,OAAO;;;;YAIf,UAAU"}