aboutsummaryrefslogtreecommitdiff
path: root/response.js
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-08-28 22:23:27 +0700
committerShulhan <ms@kilabit.info>2021-08-28 22:24:51 +0700
commitc246299101e47c28e064dbeacdbe718909bd7f17 (patch)
tree71ba2799017c5172b4b917ed0b73d4bd17584f8a /response.js
parent50c57f048eecab68570a0568f20922044935ecca (diff)
downloadpakakeh.ts-c246299101e47c28e064dbeacdbe718909bd7f17.tar.xz
all: use the WuiResponseInterface for non-void return type
This commit changes the WuiVfsOptions.istNodes and WuiEditorOptions.OpenFile to WuiResponseInterface. WuiResponseInterface define an interface that will be returned by function or method with non-void type. If the function/method success, the code should be set to 200 (equal to HTTP OK), and the data will contains the expected data for that function. If the function/method call failed, the code should be set to other value beside 200 with a message describe why its failed.
Diffstat (limited to 'response.js')
-rw-r--r--response.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/response.js b/response.js
new file mode 100644
index 0000000..6c55c1b
--- /dev/null
+++ b/response.js
@@ -0,0 +1,3 @@
+"use strict";
+exports.__esModule = true;
+//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzcG9uc2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJyZXNwb25zZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0= \ No newline at end of file