UNPKG

dynamodb-toolbox

Version:

Lightweight and type-safe query builder for DynamoDB and TypeScript.

8 lines (7 loc) 585 B
import { z } from 'zod'; import type { NullSchema } from '../../../../schema/index.js'; import type { WithValidate } from '../utils.js'; import type { ZodParserOptions } from './types.js'; import type { WithDefault, WithEncoding, WithOptional } from './utils.js'; export type NullZodParser<SCHEMA extends NullSchema, OPTIONS extends ZodParserOptions = {}> = WithEncoding<SCHEMA, OPTIONS, WithDefault<SCHEMA, OPTIONS, WithOptional<SCHEMA, OPTIONS, WithValidate<SCHEMA, z.ZodNull>>>>; export declare const nullZodParser: (schema: NullSchema, options?: ZodParserOptions) => z.ZodTypeAny;