UNPKG

dynamodb-toolbox

Version:

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

41 lines (40 loc) 1.39 kB
import type { ErrorBlueprint } from '../../errors/blueprint.js'; type InvalidElementsErrorBlueprint = ErrorBlueprint<{ code: 'schema.anyOf.invalidElements'; hasPath: true; payload: undefined; }>; type MissingElementsErrorBlueprint = ErrorBlueprint<{ code: 'schema.anyOf.missingElements'; hasPath: true; payload: undefined; }>; type OptionalElementsErrorBlueprint = ErrorBlueprint<{ code: 'schema.anyOf.optionalElements'; hasPath: true; payload: undefined; }>; type HiddenElementsErrorBlueprint = ErrorBlueprint<{ code: 'schema.anyOf.hiddenElements'; hasPath: true; payload: undefined; }>; type SavedAsElementsErrorBlueprint = ErrorBlueprint<{ code: 'schema.anyOf.savedAsElements'; hasPath: true; payload: undefined; }>; type DefaultedElementsErrorBlueprint = ErrorBlueprint<{ code: 'schema.anyOf.defaultedElements'; hasPath: true; payload: undefined; }>; type InvalidDiscriminatorErrorBlueprint = ErrorBlueprint<{ code: 'schema.anyOf.invalidDiscriminator'; hasPath: true; payload: { discriminator: unknown; }; }>; export type AnyOfSchemaErrorBlueprint = InvalidElementsErrorBlueprint | MissingElementsErrorBlueprint | OptionalElementsErrorBlueprint | HiddenElementsErrorBlueprint | SavedAsElementsErrorBlueprint | DefaultedElementsErrorBlueprint | InvalidDiscriminatorErrorBlueprint; export {};