dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
13 lines (12 loc) • 559 B
TypeScript
import type { ArrayPath } from '../../../schema/actions/utils/types.js';
import type { Schema } from '../../../schema/index.js';
import { SchemaAction } from '../../../schema/index.js';
import { SubSchema } from './subSchema.js';
/**
* @debt type "Type path as Path<SCHEMA> and return typed SubSchema"
*/
export declare class Finder<SCHEMA extends Schema = Schema> extends SchemaAction<SCHEMA> {
static actionName: "finder";
search(path: string): SubSchema[];
}
export declare const findSubSchemas: (schema: Schema, path: ArrayPath) => SubSchema[];