valid

tcmts.cli.commands.valid · #ladcedpi · term · runs anywhere

import type { Schema } from "#codebase/tcmts/cli/commands";

export const valid = <T>(validate: (value: unknown) => { value: T } | { issues: { message: string }[] }): Schema<T> => ({ "~standard": { version: 1, vendor: "tcm", validate } })

uses

used by