MCPcopy Index your code
hub / github.com/hexclave/hexclave / yupString

Function yupString

packages/shared/src/schema-fields.ts:191–194  ·  view source on GitHub ↗
(...args: Parameters<typeof yup.string<A, B>>)

Source from the content-addressed store, hash-verified

189
190// Built-in replacements
191export function yupString<A extends string, B extends yup.Maybe<yup.AnyObject> = yup.AnyObject>(...args: Parameters<typeof yup.string<A, B>>) {
192 // eslint-disable-next-line no-restricted-syntax
193 return yup.string(...args).meta({ hexclaveSchemaInfo: { type: "string" } });
194}
195export function yupNumber<A extends number, B extends yup.Maybe<yup.AnyObject> = yup.AnyObject>(...args: Parameters<typeof yup.number<A, B>>) {
196 // eslint-disable-next-line no-restricted-syntax
197 return yup.number(...args).meta({ hexclaveSchemaInfo: { type: "number" } });

Callers 15

crud.tsxFile · 0.90
geo.tsxFile · 0.90
conversations.tsFile · 0.90
admin-metrics.tsFile · 0.90
plan-usage.tsFile · 0.90
transactions.tsFile · 0.90
items.tsFile · 0.90
products.tsFile · 0.90
svix-token.tsFile · 0.90
sessions.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected