diff --git a/src/typescript.tpl.php b/src/typescript.tpl.php index 04fb304..10a8b33 100644 --- a/src/typescript.tpl.php +++ b/src/typescript.tpl.php @@ -36,6 +36,10 @@ class apiName; ?> { callPromise(method, data) { return new Promise((resolve, reject) => { this.call(method, data, function(response) { + if (method == '__HELP__') { + resolve(response); + return; + } if (response.status == 'OK') { resolve(response.data); } else {