MCPcopy
hub / github.com/ianstormtaylor/superstruct / struct

Function struct

src/structs/utilities.ts:247–253  ·  view source on GitHub ↗
(name: string, validator: Validator)

Source from the content-addressed store, hash-verified

245 */
246
247export function struct<T>(name: string, validator: Validator): Struct<T, null> {
248 console.warn(
249 'superstruct@0.11 - The `struct` helper has been renamed to `define`.'
250 )
251
252 return define(name, validator)
253}

Callers

nothing calls this directly

Calls 1

defineFunction · 0.85

Tested by

no test coverage detected