ZabbixQueryController: migrate to TS

This commit is contained in:
Alexander Zobnin
2020-05-29 10:28:01 +03:00
parent a8e34431a5
commit 6a616b56e9
2 changed files with 48 additions and 18 deletions

View File

@@ -306,6 +306,7 @@ class FuncInstance {
def: any;
params: any;
text: string;
added: boolean;
constructor(funcDef, params) {
this.def = funcDef;
@@ -408,7 +409,7 @@ class FuncInstance {
}
}
export function createFuncInstance(funcDef, params) {
export function createFuncInstance(funcDef, params?) {
if (_.isString(funcDef)) {
if (!index[funcDef]) {
throw { message: 'Method not found ' + name };