UNPKG

@upstart.gg/sdk

Version:

You can test the CLI without recompiling by running:

9 lines (6 loc) 288 B
import { Type, type NumberOptions } from "@sinclair/typebox"; import type { FieldMetadata } from "./types"; type NumberFieldOptions = NumberOptions & FieldMetadata; export function number(title: string, options: NumberFieldOptions = {}) { return Type.Number({ title, ...options }); }