UNPKG

dynamodb-toolbox

Version:

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

13 lines (12 loc) 626 B
import type { $sentArgs } from '../../../entity/constants.js'; import type { Entity, EntitySendableAction } from '../../../entity/entity.js'; import { $actionName, $spy } from './/constants.js'; import type { EntitySpy } from './spy.js'; export declare class EntityActionInspector<ENTITY extends Entity, ACTION extends EntitySendableAction<ENTITY>> { [$spy]: EntitySpy<ENTITY>; [$actionName]: string; constructor(spy: EntitySpy<ENTITY>, Action: new (entity: ENTITY) => ACTION); count(): number; args(at: number): ReturnType<ACTION[$sentArgs]> | undefined; allArgs(): ReturnType<ACTION[$sentArgs]>[]; }