Repository URL to install this package:
|
Version:
0.6.0 ▾
|
gateway-proxy
/
usr
/
share
/
gateway-proxy
/
app
/
node_modules
/
furious-commander
/
dist
/
option.d.ts
|
|---|
import * as Madlad from 'madlad';
import { Command } from './command';
/**
* Creates CLI Option based on the passed `options` and assigns its value to the property
*
* @param options IOption object, which defines the option of the command
*/
export declare function Option(options: Madlad.Argument): PropertyDecorator;
/**
* Get the yargs option key from ExternalOption metadata on the given property
*
* @param target Command instance
* @param propertyKey Property of the command instance
*/
export declare function getOption<T extends Command, K extends Extract<keyof T, string>>(target: T, propertyKey: K): Madlad.Argument;
/**
* Init the parameter with value of the desired option, which is defined outside of the class
*
* @param key CLI option reference of the required option value (without dashes)
*/
export declare function ExternalOption(key: string): PropertyDecorator;
/**
* Get the yargs option key from ExternalOption metadata on the given property
*
* @param target Command instance
* @param propertyKey Property of the command instance
*/
export declare function getExternalOption<T extends Command, K extends Extract<keyof T, string>>(target: T, propertyKey: K): string;