@lcap/asl
Version:
NetEase Application Specific Language
42 lines (41 loc) • 1.3 kB
TypeScript
import { Interface, LogicItem } from '../..';
export declare function getSelectedCallParamsOfInterface(itface: Interface, params?: Array<Partial<LogicItem>>): Partial<LogicItem>[];
export declare function getRequiredCallParamsOfInterface(itface: Interface): Partial<LogicItem>[];
export declare function getOptionalCallParamsOfInterface(itface: Interface): Partial<LogicItem>[];
/**
* 生成调用接口
* @param itface 接口实例
* @param params 输入参数
*/
export declare function genCallInterface(itface: Interface, params?: Array<Partial<LogicItem>>): {
level: string;
type: string;
label: string;
interfaceKey: string;
params: Partial<LogicItem>[];
} | {
level: string;
type: string;
label: string;
callee: string;
calleeCode: string;
params: Partial<LogicItem>[];
};
export default genCallInterface;
export declare function genCallInterfaceFromTempInterface(itface: any, params?: Array<Partial<LogicItem>>): {
level: string;
type: string;
label: string;
callee: any;
calleeCode: string;
params: Partial<LogicItem>[];
interfaceKey?: undefined;
} | {
level: string;
type: string;
label: string;
interfaceKey: any;
params: Partial<LogicItem>[];
callee?: undefined;
calleeCode?: undefined;
};