From b18960f60057c1915ff48f70431cf076e6cba66b Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Sat, 13 Jan 2024 14:56:56 +0200 Subject: [PATCH] luci-base: JsDoc: exec_direct(): fix "type" enum The "type" can be "json" Signed-off-by: Sergey Ponomarev --- modules/luci-base/htdocs/luci-static/resources/fs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/fs.js b/modules/luci-base/htdocs/luci-static/resources/fs.js index b64af04e56..cf64cfdf62 100644 --- a/modules/luci-base/htdocs/luci-static/resources/fs.js +++ b/modules/luci-base/htdocs/luci-static/resources/fs.js @@ -345,7 +345,7 @@ var FileSystem = baseclass.extend(/** @lends LuCI.fs.prototype */ { * @param {string} path * The file path to read. * - * @param {"blob"|"text"|"blob"} [type=text] + * @param {"blob"|"text"|"json"} [type=text] * The expected type of read file contents. Valid values are `text` to * interpret the contents as string, `json` to parse the contents as JSON * or `blob` to return the contents as Blob instance. @@ -387,7 +387,7 @@ var FileSystem = baseclass.extend(/** @lends LuCI.fs.prototype */ { * @param {string[]} [params] * The arguments to pass to the command. * - * @param {"blob"|"text"|"blob"} [type=text] + * @param {"blob"|"text"|"json"} [type=text] * The expected output type of the invoked program. Valid values are * `text` to interpret the output as string, `json` to parse the output * as JSON or `blob` to return the output as Blob instance. -- 2.30.2