MCPcopy Create free account
hub / github.com/bombshell-dev/clack / Props

Interface Props

packages/core/src/utils/standard-schema.ts:11–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9export declare namespace StandardSchemaV1 {
10 /** The Standard Schema properties interface. */
11 export interface Props<Input = unknown, Output = Input> {
12 /** The version number of the standard. */
13 readonly version: 1;
14 /** The vendor name of the schema library. */
15 readonly vendor: string;
16 /** Validates unknown input values. */
17 readonly validate: (
18 value: unknown,
19 options?: StandardSchemaV1.Options | undefined
20 ) => Result<Output> | Promise<Result<Output>>;
21 /** Inferred types associated with the schema. */
22 readonly types?: Types<Input, Output> | undefined;
23 }
24
25 /** The result interface of the validate function. */
26 export type Result<Output> = SuccessResult<Output> | FailureResult;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected