@nxtedition/types 23.0.14 → 23.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.d.ts CHANGED
@@ -17,7 +17,7 @@ export interface ElectronHubApi {
17
17
  controlDownloadItem: (...args: unknown[]) => void;
18
18
  openInApp: (...args: unknown[]) => void;
19
19
  installDavinciPlugin: (url: string) => Promise<void>;
20
- clipboard: unknown;
20
+ clipboard: ElectronHubApiClipboard;
21
21
  downloadFile: (options: DownloadFileOptions) => void;
22
22
  showItemInFolder: (fullPath: string) => void;
23
23
  openPath: (path: string) => void;
@@ -28,6 +28,16 @@ export declare const randomElectronHubApi: () => ElectronHubApi;
28
28
  export declare const assertGuardElectronHubApi: __AssertionGuard<ElectronHubApi>;
29
29
  export declare const stringifyElectronHubApi: (input: ElectronHubApi) => string;
30
30
  export declare const assertStringifyElectronHubApi: (input: unknown) => string;
31
+ export interface ElectronHubApiClipboard {
32
+ readText: () => Promise<string>;
33
+ writeText: (text: string) => Promise<void>;
34
+ }
35
+ export declare const isElectronHubApiClipboard: (input: unknown) => input is ElectronHubApiClipboard;
36
+ export declare const assertElectronHubApiClipboard: (input: unknown) => ElectronHubApiClipboard;
37
+ export declare const randomElectronHubApiClipboard: () => ElectronHubApiClipboard;
38
+ export declare const assertGuardElectronHubApiClipboard: __AssertionGuard<ElectronHubApiClipboard>;
39
+ export declare const stringifyElectronHubApiClipboard: (input: ElectronHubApiClipboard) => string;
40
+ export declare const assertStringifyElectronHubApiClipboard: (input: unknown) => string;
31
41
  export interface DownloadFileOptions {
32
42
  /**
33
43
  * URL of the resource to download.
package/dist/app.js CHANGED
@@ -1,11 +1,13 @@
1
1
  import __typia from "typia";
2
2
  export const isElectronHubApi = input => {
3
- const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && true && true && true && true;
3
+ const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && ("object" === typeof input.clipboard && null !== input.clipboard && $io1(input.clipboard)) && true && true && true;
4
+ const $io1 = input => true && true;
4
5
  return "object" === typeof input && null !== input && $io0(input);
5
6
  };
6
7
  export const assertElectronHubApi = (input, errorFactory) => {
7
8
  const __is = input => {
8
- const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && true && true && true && true;
9
+ const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && ("object" === typeof input.clipboard && null !== input.clipboard && $io1(input.clipboard)) && true && true && true;
10
+ const $io1 = input => true && true;
9
11
  return "object" === typeof input && null !== input && $io0(input);
10
12
  };
11
13
  if (false === __is(input))
@@ -55,7 +57,15 @@ export const assertElectronHubApi = (input, errorFactory) => {
55
57
  path: _path + ".installDavinciPlugin",
56
58
  expected: "unknown",
57
59
  value: input.installDavinciPlugin
58
- }, errorFactory)) && true && (true || $guard(_exceptionable, {
60
+ }, errorFactory)) && (("object" === typeof input.clipboard && null !== input.clipboard || $guard(_exceptionable, {
61
+ path: _path + ".clipboard",
62
+ expected: "ElectronHubApiClipboard",
63
+ value: input.clipboard
64
+ }, errorFactory)) && $ao1(input.clipboard, _path + ".clipboard", true && _exceptionable) || $guard(_exceptionable, {
65
+ path: _path + ".clipboard",
66
+ expected: "ElectronHubApiClipboard",
67
+ value: input.clipboard
68
+ }, errorFactory)) && (true || $guard(_exceptionable, {
59
69
  path: _path + ".downloadFile",
60
70
  expected: "unknown",
61
71
  value: input.downloadFile
@@ -68,6 +78,15 @@ export const assertElectronHubApi = (input, errorFactory) => {
68
78
  expected: "unknown",
69
79
  value: input.openPath
70
80
  }, errorFactory));
81
+ const $ao1 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
82
+ path: _path + ".readText",
83
+ expected: "unknown",
84
+ value: input.readText
85
+ }, errorFactory)) && (true || $guard(_exceptionable, {
86
+ path: _path + ".writeText",
87
+ expected: "unknown",
88
+ value: input.writeText
89
+ }, errorFactory));
71
90
  return ("object" === typeof input && null !== input || $guard(true, {
72
91
  path: _path + "",
73
92
  expected: "ElectronHubApi",
@@ -93,16 +112,21 @@ export const randomElectronHubApi = generator => {
93
112
  controlDownloadItem: undefined,
94
113
  openInApp: undefined,
95
114
  installDavinciPlugin: undefined,
96
- clipboard: "any type used...",
115
+ clipboard: $ro1(_recursive, _recursive ? 1 + _depth : _depth),
97
116
  downloadFile: undefined,
98
117
  showItemInFolder: undefined,
99
118
  openPath: undefined
100
119
  });
120
+ const $ro1 = (_recursive = false, _depth = 0) => ({
121
+ readText: undefined,
122
+ writeText: undefined
123
+ });
101
124
  return $ro0();
102
125
  };
103
126
  export const assertGuardElectronHubApi = (input, errorFactory) => {
104
127
  const __is = input => {
105
- const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && true && true && true && true;
128
+ const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && ("object" === typeof input.clipboard && null !== input.clipboard && $io1(input.clipboard)) && true && true && true;
129
+ const $io1 = input => true && true;
106
130
  return "object" === typeof input && null !== input && $io0(input);
107
131
  };
108
132
  if (false === __is(input))
@@ -152,7 +176,15 @@ export const assertGuardElectronHubApi = (input, errorFactory) => {
152
176
  path: _path + ".installDavinciPlugin",
153
177
  expected: "unknown",
154
178
  value: input.installDavinciPlugin
155
- }, errorFactory)) && true && (true || $guard(_exceptionable, {
179
+ }, errorFactory)) && (("object" === typeof input.clipboard && null !== input.clipboard || $guard(_exceptionable, {
180
+ path: _path + ".clipboard",
181
+ expected: "ElectronHubApiClipboard",
182
+ value: input.clipboard
183
+ }, errorFactory)) && $ao1(input.clipboard, _path + ".clipboard", true && _exceptionable) || $guard(_exceptionable, {
184
+ path: _path + ".clipboard",
185
+ expected: "ElectronHubApiClipboard",
186
+ value: input.clipboard
187
+ }, errorFactory)) && (true || $guard(_exceptionable, {
156
188
  path: _path + ".downloadFile",
157
189
  expected: "unknown",
158
190
  value: input.downloadFile
@@ -165,6 +197,15 @@ export const assertGuardElectronHubApi = (input, errorFactory) => {
165
197
  expected: "unknown",
166
198
  value: input.openPath
167
199
  }, errorFactory));
200
+ const $ao1 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
201
+ path: _path + ".readText",
202
+ expected: "unknown",
203
+ value: input.readText
204
+ }, errorFactory)) && (true || $guard(_exceptionable, {
205
+ path: _path + ".writeText",
206
+ expected: "unknown",
207
+ value: input.writeText
208
+ }, errorFactory));
168
209
  return ("object" === typeof input && null !== input || $guard(true, {
169
210
  path: _path + "",
170
211
  expected: "ElectronHubApi",
@@ -177,12 +218,15 @@ export const assertGuardElectronHubApi = (input, errorFactory) => {
177
218
  })(input, "$input", true);
178
219
  };
179
220
  export const stringifyElectronHubApi = input => {
180
- const $so0 = input => `{${undefined === input.clipboard || "function" === typeof input.clipboard ? "" : `"clipboard":${undefined !== input.clipboard ? JSON.stringify(input.clipboard) : undefined},`}}`;
221
+ const $io1 = input => true && true;
222
+ const $so0 = input => `{"clipboard":${$so1(input.clipboard)}}`;
223
+ const $so1 = input => "{}";
181
224
  return $so0(input);
182
225
  };
183
226
  export const assertStringifyElectronHubApi = (input, errorFactory) => { const assert = (input, errorFactory) => {
184
227
  const __is = input => {
185
- const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && true && true && true && true;
228
+ const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && ("object" === typeof input.clipboard && null !== input.clipboard && $io1(input.clipboard)) && true && true && true;
229
+ const $io1 = input => true && true;
186
230
  return "object" === typeof input && null !== input && $io0(input);
187
231
  };
188
232
  if (false === __is(input))
@@ -232,7 +276,15 @@ export const assertStringifyElectronHubApi = (input, errorFactory) => { const as
232
276
  path: _path + ".installDavinciPlugin",
233
277
  expected: "unknown",
234
278
  value: input.installDavinciPlugin
235
- }, errorFactory)) && true && (true || $guard(_exceptionable, {
279
+ }, errorFactory)) && (("object" === typeof input.clipboard && null !== input.clipboard || $guard(_exceptionable, {
280
+ path: _path + ".clipboard",
281
+ expected: "ElectronHubApiClipboard",
282
+ value: input.clipboard
283
+ }, errorFactory)) && $ao1(input.clipboard, _path + ".clipboard", true && _exceptionable) || $guard(_exceptionable, {
284
+ path: _path + ".clipboard",
285
+ expected: "ElectronHubApiClipboard",
286
+ value: input.clipboard
287
+ }, errorFactory)) && (true || $guard(_exceptionable, {
236
288
  path: _path + ".downloadFile",
237
289
  expected: "unknown",
238
290
  value: input.downloadFile
@@ -245,6 +297,15 @@ export const assertStringifyElectronHubApi = (input, errorFactory) => { const as
245
297
  expected: "unknown",
246
298
  value: input.openPath
247
299
  }, errorFactory));
300
+ const $ao1 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
301
+ path: _path + ".readText",
302
+ expected: "unknown",
303
+ value: input.readText
304
+ }, errorFactory)) && (true || $guard(_exceptionable, {
305
+ path: _path + ".writeText",
306
+ expected: "unknown",
307
+ value: input.writeText
308
+ }, errorFactory));
248
309
  return ("object" === typeof input && null !== input || $guard(true, {
249
310
  path: _path + "",
250
311
  expected: "ElectronHubApi",
@@ -257,7 +318,113 @@ export const assertStringifyElectronHubApi = (input, errorFactory) => { const as
257
318
  })(input, "$input", true);
258
319
  return input;
259
320
  }; const stringify = input => {
260
- const $so0 = input => `{${undefined === input.clipboard || "function" === typeof input.clipboard ? "" : `"clipboard":${undefined !== input.clipboard ? JSON.stringify(input.clipboard) : undefined},`}}`;
321
+ const $io1 = input => true && true;
322
+ const $so0 = input => `{"clipboard":${$so1(input.clipboard)}}`;
323
+ const $so1 = input => "{}";
324
+ return $so0(input);
325
+ }; return stringify(assert(input, errorFactory)); };
326
+ export const isElectronHubApiClipboard = input => {
327
+ const $io0 = input => true && true;
328
+ return "object" === typeof input && null !== input && $io0(input);
329
+ };
330
+ export const assertElectronHubApiClipboard = (input, errorFactory) => {
331
+ const __is = input => {
332
+ const $io0 = input => true && true;
333
+ return "object" === typeof input && null !== input && $io0(input);
334
+ };
335
+ if (false === __is(input))
336
+ ((input, _path, _exceptionable = true) => {
337
+ const $guard = __typia.createAssert.guard;
338
+ const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
339
+ path: _path + ".readText",
340
+ expected: "unknown",
341
+ value: input.readText
342
+ }, errorFactory)) && (true || $guard(_exceptionable, {
343
+ path: _path + ".writeText",
344
+ expected: "unknown",
345
+ value: input.writeText
346
+ }, errorFactory));
347
+ return ("object" === typeof input && null !== input || $guard(true, {
348
+ path: _path + "",
349
+ expected: "ElectronHubApiClipboard",
350
+ value: input
351
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
352
+ path: _path + "",
353
+ expected: "ElectronHubApiClipboard",
354
+ value: input
355
+ }, errorFactory);
356
+ })(input, "$input", true);
357
+ return input;
358
+ };
359
+ export const randomElectronHubApiClipboard = generator => {
360
+ const $ro0 = (_recursive = false, _depth = 0) => ({
361
+ readText: undefined,
362
+ writeText: undefined
363
+ });
364
+ return $ro0();
365
+ };
366
+ export const assertGuardElectronHubApiClipboard = (input, errorFactory) => {
367
+ const __is = input => {
368
+ const $io0 = input => true && true;
369
+ return "object" === typeof input && null !== input && $io0(input);
370
+ };
371
+ if (false === __is(input))
372
+ ((input, _path, _exceptionable = true) => {
373
+ const $guard = __typia.createAssertGuard.guard;
374
+ const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
375
+ path: _path + ".readText",
376
+ expected: "unknown",
377
+ value: input.readText
378
+ }, errorFactory)) && (true || $guard(_exceptionable, {
379
+ path: _path + ".writeText",
380
+ expected: "unknown",
381
+ value: input.writeText
382
+ }, errorFactory));
383
+ return ("object" === typeof input && null !== input || $guard(true, {
384
+ path: _path + "",
385
+ expected: "ElectronHubApiClipboard",
386
+ value: input
387
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
388
+ path: _path + "",
389
+ expected: "ElectronHubApiClipboard",
390
+ value: input
391
+ }, errorFactory);
392
+ })(input, "$input", true);
393
+ };
394
+ export const stringifyElectronHubApiClipboard = input => {
395
+ const $so0 = input => "{}";
396
+ return $so0(input);
397
+ };
398
+ export const assertStringifyElectronHubApiClipboard = (input, errorFactory) => { const assert = (input, errorFactory) => {
399
+ const __is = input => {
400
+ const $io0 = input => true && true;
401
+ return "object" === typeof input && null !== input && $io0(input);
402
+ };
403
+ if (false === __is(input))
404
+ ((input, _path, _exceptionable = true) => {
405
+ const $guard = __typia.json.createAssertStringify.guard;
406
+ const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
407
+ path: _path + ".readText",
408
+ expected: "unknown",
409
+ value: input.readText
410
+ }, errorFactory)) && (true || $guard(_exceptionable, {
411
+ path: _path + ".writeText",
412
+ expected: "unknown",
413
+ value: input.writeText
414
+ }, errorFactory));
415
+ return ("object" === typeof input && null !== input || $guard(true, {
416
+ path: _path + "",
417
+ expected: "ElectronHubApiClipboard",
418
+ value: input
419
+ }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
420
+ path: _path + "",
421
+ expected: "ElectronHubApiClipboard",
422
+ value: input
423
+ }, errorFactory);
424
+ })(input, "$input", true);
425
+ return input;
426
+ }; const stringify = input => {
427
+ const $so0 = input => "{}";
261
428
  return $so0(input);
262
429
  }; return stringify(assert(input, errorFactory)); };
263
430
  export const isDownloadFileOptions = input => {
package/dist/schema.json CHANGED
@@ -1643,7 +1643,9 @@
1643
1643
  "ElectronHubApi": {
1644
1644
  "additionalProperties": false,
1645
1645
  "properties": {
1646
- "clipboard": {},
1646
+ "clipboard": {
1647
+ "$ref": "#/definitions/ElectronHubApiClipboard"
1648
+ },
1647
1649
  "controlDownloadItem": {
1648
1650
  "additionalProperties": false,
1649
1651
  "type": "object"
@@ -1720,6 +1722,24 @@
1720
1722
  ],
1721
1723
  "type": "object"
1722
1724
  },
1725
+ "ElectronHubApiClipboard": {
1726
+ "additionalProperties": false,
1727
+ "properties": {
1728
+ "readText": {
1729
+ "additionalProperties": false,
1730
+ "type": "object"
1731
+ },
1732
+ "writeText": {
1733
+ "additionalProperties": false,
1734
+ "type": "object"
1735
+ }
1736
+ },
1737
+ "required": [
1738
+ "readText",
1739
+ "writeText"
1740
+ ],
1741
+ "type": "object"
1742
+ },
1723
1743
  "EventDomainRecords": {
1724
1744
  "additionalProperties": false,
1725
1745
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nxtedition/types",
3
- "version": "23.0.14",
3
+ "version": "23.0.15",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "scripts": {