@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 • 659 B
Source Map (JSON)
{"version":3,"file":"backend.mjs","names":["z"],"sources":["../../../../src/modules/kms/options/backend.ts"],"sourcesContent":["import { z } from 'zod'\nimport type { zBaseSchema } from '../../../utils/zod'\n\nexport const zWithBackend = <Schema extends zBaseSchema>(schema: Schema) =>\n schema.and(z.object({ backend: z.optional(z.string()) }))\n\nexport type WithBackend<T> = T & {\n /**\n * The backend to use for creating the key. If not provided the\n * default backend for key operations will be used.\n */\n backend?: string\n}\n"],"mappings":";;AAGA,MAAa,gBAA4C,WACvD,OAAO,IAAIA,IAAE,OAAO,EAAE,SAASA,IAAE,SAASA,IAAE,OAAO,CAAC,EAAE,CAAC,CAAC"}