Skip to content

Latest commit

 

History

History
164 lines (147 loc) · 2.45 KB

File metadata and controls

164 lines (147 loc) · 2.45 KB
title description source contributors
unknown
Creates an unknown schema.
/schemas/unknown/unknown.ts
fabian-hiller
mwskwong

import { ApiList, Property } from '~/components'; import { properties } from './properties';

unknown

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();

Returns

  • Schema <Property {...properties.Schema} />

Related

The following APIs can be combined with unknwon.

Schemas

<ApiList items={[ 'array', 'intersect', 'lazy', 'looseObject', 'looseTuple', 'map', 'nonNullable', 'nonNullish', 'nonOptional', 'nullable', 'nullish', 'object', 'objectWithRest', 'optional', 'record', 'set', 'strictObject', 'strictTuple', 'tuple', 'tupleWithRest', 'union', ]} />

Methods

<ApiList items={[ 'config', 'fallback', 'getDefault', 'getDefaults', 'getFallback', 'getFallbacks', 'is', 'parse', 'parser', 'pipe', 'safeParse', 'safeParser', ]} />

Actions

<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', ]} />

Utils

<ApiList items={['entriesFromList', 'isOfKind', 'isOfType']} />