type-alias / @typed/router/Path

SchemaField

A required decoded field name paired with its Effect Schema.

Package version
1.0.0-beta.7
Category
Parameter schemas
Since
1.0.0

Import

import type { SchemaField } from "@typed/router/Path";

Signatures

export type SchemaField = readonly [
    string,
    Schema.Top
];

Why

Schema construction can collect route fields without losing the decoded validator.

Ownership and lifetime

SchemaField is a readonly structural contract. The concrete arrays, AST nodes, names, and Schemas remain owned by the caller that constructs them.

Source