title | description | source | contributors | ||
---|---|---|---|---|---|
unknown |
Creates an unknown schema. |
/schemas/unknown/unknown.ts |
|
import { ApiList, Property } from '~/components'; import { properties } from './properties';
Creates an unknown schema.
Use this schema function only if the data is truly unknown. Otherwise, use the other more specific schema functions that describe the data exactly.
const Schema = v.unknown();
Schema
<Property {...properties.Schema} />
The following APIs can be combined with unknwon
.
<ApiList items={[ 'array', 'intersect', 'lazy', 'looseObject', 'looseTuple', 'map', 'nonNullable', 'nonNullish', 'nonOptional', 'nullable', 'nullish', 'object', 'objectWithRest', 'optional', 'record', 'set', 'strictObject', 'strictTuple', 'tuple', 'tupleWithRest', 'union', ]} />
<ApiList items={[ 'config', 'fallback', 'getDefault', 'getDefaults', 'getFallback', 'getFallbacks', 'is', 'parse', 'parser', 'pipe', 'safeParse', 'safeParser', ]} />
<ApiList items={[ 'base64', 'bic', 'brand', 'bytes', 'check', 'checkItems', 'creditCard', 'cuid2', 'decimal', 'email', 'emoji', 'empty', 'endsWith', 'everyItem', 'excludes', 'filterItems', 'findItem', 'finite', 'hash', 'hexadecimal', 'hexColor', 'imei', 'includes', 'integer', 'ip', 'ipv4', 'ipv6', 'isoDate', 'isoDateTime', 'isoTime', 'isoTimeSecond', 'isoTimestamp', 'isoWeek', 'length', 'mac', 'mac48', 'mac64', 'mapItems', 'maxBytes', 'maxLength', 'maxSize', 'maxValue', 'mimeType', 'minBytes', 'minLength', 'minSize', 'minValue', 'multipleOf', 'nonEmpty', 'notBytes', 'notLength', 'notSize', 'notValue', 'octal', 'partialCheck', 'rawCheck', 'rawTransform', 'readonly', 'reduceItems', 'regex', 'safeInteger', 'size', 'someItem', 'sortItem', 'startsWith', 'toLowerCase', 'toMaxValue', 'toMinValue', 'toUpperCase', 'transform', 'trim', 'trimEnd', 'trimStart', 'ulid', 'url', 'uuid', 'value', ]} />
<ApiList items={['entriesFromList', 'isOfKind', 'isOfType']} />