Repository URL to install this package:
|
Version:
0.6.0 ▾
|
gateway-proxy
/
usr
/
share
/
gateway-proxy
/
app
/
node_modules
/
furious-commander
/
dist
/
aggregation.d.ts
|
|---|
import { Command } from './command';
export interface AggregationData {
command: string;
property: string;
}
export declare function findFirstAggregration(command: Command): AggregationData | null;
/**
* Aggregate the aimed Command class provided by `cliPath` and assigns its value to the property
*
* @param cliPath chain of command class names until the desired class instance
*/
export declare function Aggregation(cliPath: string[]): PropertyDecorator;
/**
* Get the aggregation metadata on the given property
*
* @param target Command instance
* @param propertyKey Property of the command instance
*
* @returns CLI path of the aggregated relation
*/
export declare function getAggregation<T extends Command, K extends Extract<keyof T, string>>(target: T, propertyKey: K): string[];