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

1 lines • 962 B
{"version":3,"file":"W3cV2RefreshService.mjs","names":[],"sources":["../../../../../src/modules/vc/models/credential/W3cV2RefreshService.ts"],"sourcesContent":["import { plainToClassFromExist } from 'class-transformer'\nimport { IsString } from 'class-validator'\n\nexport interface W3cV2RefreshServiceOptions {\n type: string\n [property: string]: unknown\n}\n\n/**\n * Represents a refresh service.\n *\n * @see https://www.w3.org/TR/vc-data-model-2.0/#refreshing\n */\nexport class W3cV2RefreshService {\n public constructor(options: W3cV2RefreshServiceOptions) {\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,sBAAb,MAAiC;CAC/B,AAAO,YAAY,SAAqC;AACtD,MAAI,SAAS;GACX,MAAM,EAAE,MAAM,GAAG,SAAS;AAE1B,yBAAsB,MAAM,KAAK;AAEjC,QAAK,OAAO;;;;YAIf,UAAU"}