dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
20 lines (19 loc) • 773 B
TypeScript
import type { Schema } from '../types/index.js';
import { $computed, $discriminations_, $discriminators, $discriminators_ } from './constants.js';
import type { AnyOfSchemaProps } from './types.js';
export declare class AnyOfSchema<ELEMENTS extends Schema[] = Schema[], PROPS extends AnyOfSchemaProps = AnyOfSchemaProps> {
type: 'anyOf';
elements: ELEMENTS;
props: PROPS;
[$discriminators_]: Record<string, string> & {
[$computed]: boolean;
};
[$discriminations_]: Record<string, Schema> & {
[$computed]: boolean;
};
constructor(elements: ELEMENTS, props: PROPS);
get checked(): boolean;
check(path?: string): void;
get [$discriminators](): Record<string, string>;
match(value: string): Schema | undefined;
}