StandardSchemaV1Props
The ~standard member of a StandardSchemaV1.
The ~standard member of a StandardSchemaV1.
Import#
ts
import type { StandardSchemaV1Props } from "@shadow-js/dusk/server";
Signature#
ts
interface StandardSchemaV1Props<Input = unknown, Output = Input> {
readonly version: 1;
readonly vendor: string;
readonly validate: (
value: unknown,
) => StandardSchemaV1Result<Output> | Promise<StandardSchemaV1Result<Output>>;
/** Inference-only. Never read at runtime. */
readonly types?: { readonly input: Input; readonly output: Output } | undefined;
}
Members#
| Name | Type | Description |
|---|---|---|
Input |
Input = unknown |
|
Output |
Output = Input |
|
version |
readonly version: 1 |
|
vendor |
readonly vendor: string |
|
validate |
readonly validate: ( value: unknown, ) => StandardSchemaV1Result<Output> | Promise<StandardSchemaV1Result<Output>> |
|
types? |
readonly types?: { readonly input: Input; readonly output: Output } | undefined |
Inference-only. Never read at runtime. |