/** * Limit Node - Version 1 * Restrict the number of items */ export interface LimitV1Params { /** * If there are more items than this number, some are removed * @default 1 */ maxItems?: number | Expression; /** * When removing items, whether to keep the ones at the start or the ending * @default firstItems */ keep?: 'firstItems' | 'lastItems' | Expression; } interface LimitV1NodeBase { type: 'n8n-nodes-base.limit'; version: 1; } export type LimitV1ParamsNode = LimitV1NodeBase & { config: NodeConfig; }; export type LimitV1Node = LimitV1ParamsNode;