Skip to content

Commit 94b0db2

Browse files
committed
add return type (jsdoc)
1 parent 4b96ed0 commit 94b0db2

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

CEPEngine_extensions.d.ts

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ declare class FS {
7575
* @param fileTypes {Array.<string>} The file extensions (without the dot) for the types
7676
* of files that can be selected. Ignored when chooseDirectory=true.
7777
*
78-
* @return An object with these properties:
78+
* @return {Object} An object with these properties:
7979
* <ul><li>"data": An array of the full names of the selected files.</li>
8080
* <li>"err": The status of the operation, one of
8181
* <br>NO_ERROR
@@ -102,7 +102,7 @@ declare class FS {
102102
* friendlyFilePrefix = "Images (*.gif;*.jpg;*.jpeg;*.png;*.bmp;*.webp;*.svg)";
103103
* @param prompt {string} String for OK button (mac only, default is "Open" on mac, "Open" or "Select Folder" on win).
104104
*
105-
* @return An object with these properties:
105+
* @return {Object} An object with these properties:
106106
* <ul><li>"data": An array of the full names of the selected files.</li>
107107
* <li>"err": The status of the operation, one of
108108
* <br>NO_ERROR
@@ -127,7 +127,7 @@ declare class FS {
127127
* @param prompt {string} String for Save button (mac only, default is "Save" on mac and win).
128128
* @param nameFieldLabel {string} String displayed in front of the file name text field (mac only, "File name:" on win).
129129
*
130-
* @return An object with these properties:
130+
* @return {Object} An object with these properties:
131131
* <ul><li>"data": The file path selected to save at or "" if canceled</li>
132132
* <li>"err": The status of the operation, one of
133133
* <br>NO_ERROR
@@ -141,7 +141,7 @@ declare class FS {
141141
*
142142
* @param path {string} The path of the folder to read.
143143
*
144-
* @return An object with these properties:
144+
* @return {Object} An object with these properties:
145145
* <ul><li>"data": An array of the names of the contained files (excluding '.' and '..'.</li>
146146
* <li>"err": The status of the operation, one of:
147147
* <br>NO_ERROR
@@ -157,7 +157,7 @@ declare class FS {
157157
*
158158
* @param path {string} The path of the folder to create.
159159
*
160-
* @return An object with this property:
160+
* @return {Object} An object with this property:
161161
* <ul><li>"err": The status of the operation, one of:
162162
* <br>NO_ERROR
163163
* <br>ERR_UNKNOWN
@@ -186,7 +186,7 @@ declare class FS {
186186
*
187187
* @param path {string} The path of the file or folder.
188188
*
189-
* @return An object with these properties:
189+
* @return {Object} An object with these properties:
190190
* <ul><li>"data": An object with properties
191191
* <br>isFile (boolean)
192192
* <br>isDirectory (boolean)
@@ -207,7 +207,7 @@ declare class FS {
207207
* @param encoding {string} The encoding of the contents of file, one of
208208
* UTF8 (the default) or Base64.
209209
*
210-
* @return An object with these properties:
210+
* @return {Object} An object with these properties:
211211
* <ul><li>"data": The file contents. </li>
212212
* <li>"err": The status of the operation, one of
213213
* <br>NO_ERROR
@@ -228,7 +228,7 @@ declare class FS {
228228
* @param encoding {string} The encoding of the contents of file, one of
229229
* UTF8 (the default) or Base64.
230230
*
231-
* @return An object with this property:
231+
* @return {Object} An object with this property:
232232
* <ul><li>"err": The status of the operation, one of:
233233
* <br>NO_ERROR
234234
* <br>ERR_UNKNOWN
@@ -245,7 +245,7 @@ declare class FS {
245245
* @param path {string} The path of the file or folder.
246246
* @param mode {number} The permissions in numeric format (for example, 0777).
247247
*
248-
* @return An object with this property:
248+
* @return {Object} An object with this property:
249249
* <ul><li>"err": The status of the operation, one of:
250250
* <br>NO_ERROR
251251
* <br>ERR_UNKNOWN
@@ -259,7 +259,7 @@ declare class FS {
259259
*
260260
* @param path {string} The path of the file to delete.
261261
*
262-
* @return An object with this property:
262+
* @return {Object} An object with this property:
263263
* <ul><li>"err": The status of the operation, one of:
264264
* <br>NO_ERROR
265265
* <br>ERR_UNKNOWN
@@ -282,7 +282,7 @@ declare class Process {
282282
* @param arguments {list} The arguments to create process. The first one is the full path of the executable,
283283
* followed by the arguments of the executable.
284284
*
285-
* @return An object with these properties:
285+
* @return {Object} An object with these properties:
286286
* <ul><li>"data": The pid of the process, or -1 on error. </li>
287287
* <li>"err": The status of the operation, one of
288288
* <br>NO_ERROR
@@ -301,7 +301,7 @@ declare class Process {
301301
* @param pid {int} The pid of the process.
302302
* @param callback {function} The handler function for the standard output callback.
303303
*
304-
* @return An object with this property:
304+
* @return {Object} An object with this property:
305305
* <ul><li>"err": The status of the operation, one of:
306306
* <br>NO_ERROR
307307
* <br>ERR_UNKNOWN
@@ -316,7 +316,7 @@ declare class Process {
316316
* @param pid {int} The pid of the process.
317317
* @param callback {function} The handler function for the standard error callback.
318318
*
319-
* @return An object with this property:
319+
* @return {Object} An object with this property:
320320
* <ul><li>"err": The status of the operation, one of:
321321
* <br>NO_ERROR
322322
* <br>ERR_UNKNOWN
@@ -331,7 +331,7 @@ declare class Process {
331331
* @param pid {int} The pid of the process
332332
* @param data {string} The data to write.
333333
*
334-
* @return An object with this property:
334+
* @return {Object} An object with this property:
335335
* <ul><li>"err": The status of the operation, one of:
336336
* <br>NO_ERROR
337337
* <br>ERR_UNKNOWN
@@ -345,7 +345,7 @@ declare class Process {
345345
*
346346
* @param pid {int} The pid of the process.
347347
*
348-
* @return An object with these properties:
348+
* @return {Object} An object with these properties:
349349
* <ul><li>"data": The path of the working directory. </li>
350350
* <li>"err": The status of the operation, one of
351351
* <br>NO_ERROR
@@ -360,7 +360,7 @@ declare class Process {
360360
*
361361
* @param pid {int} The pid of the process.
362362
*
363-
* @return An object with this property:
363+
* @return {Object} An object with this property:
364364
* <ul><li>"err": The status of the operation, one of:
365365
* <br>NO_ERROR
366366
* <br>ERR_UNKNOWN
@@ -389,7 +389,7 @@ declare class Process {
389389
*
390390
* @param pid {int} The pid of the process.
391391
*
392-
* @return An object with these properties:
392+
* @return {Object} An object with these properties:
393393
* <ul><li>"data": True if the process is running, false otherwise. </li>
394394
* <li>"err": The status of the operation, one of
395395
* <br>NO_ERROR
@@ -404,7 +404,7 @@ declare class Process {
404404
*
405405
* @param pid {int} The pid of the process
406406
*
407-
* @return An object with this property:
407+
* @return {Object} An object with this property:
408408
* <ul><li>"err": The status of the operation, one of:
409409
* <br>NO_ERROR
410410
* <br>ERR_UNKNOWN
@@ -415,6 +415,7 @@ declare class Process {
415415
}
416416

417417
declare interface EncodingConvertion {
418+
418419
utf8_to_b64(str: string): string;
419420

420421
b64_to_utf8(base64str: string): string;
@@ -439,7 +440,7 @@ declare class Encoding {
439440
*/
440441
readonly Base64 = "Base64";
441442

442-
convertion: EncodingConvertion
443+
convertion: EncodingConvertion;
443444
}
444445

445446
declare class Util {
@@ -463,7 +464,7 @@ declare class Util {
463464
* "file:///C:/log.txt"
464465
* "mailto:test@adobe.com"
465466
*
466-
* @return An object with this property:
467+
* @return {Object} An object with this property:
467468
* <ul><li>"err": The status of the operation, one of:
468469
* <br>NO_ERROR
469470
* <br>ERR_UNKNOWN
@@ -479,7 +480,7 @@ declare class Util {
479480
*
480481
* @param callback {function} The handler function.
481482
*
482-
* @return An object with this property:
483+
* @return {Object} An object with this property:
483484
* <ul><li>"err": The status of the operation, one of:
484485
* <br>NO_ERROR
485486
* <br>ERR_INVALID_PARAMS</li></ul>
@@ -492,7 +493,7 @@ declare class Util {
492493
* @param username {string} proxy username
493494
* @param password {string} proxy password
494495
*
495-
* @return An object with this property:
496+
* @return {Object} An object with this property:
496497
* <ul><li>"err": The status of the operation, one of
497498
* <br>NO_ERROR
498499
* <br>ERR_INVALID_PARAMS </li>

0 commit comments

Comments
 (0)