@sitevision/api 2023.2.2-beta.2 → 2023.2.2-beta.3

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.
Files changed (27) hide show
  1. package/package.json +1 -1
  2. package/server/ArraysInstance/index.d.ts +1 -1
  3. package/server/CollectionsInstance/index.d.ts +1 -1
  4. package/server/NodeTypeUtil/index.d.ts +1 -1
  5. package/server/PermissionUtil/index.d.ts +3 -3
  6. package/server/Properties/index.d.ts +7 -4
  7. package/server/TagUtil/index.d.ts +1 -1
  8. package/types/java/io/PrintStream/index.d.ts +4 -4
  9. package/types/java/io/PrintWriter/index.d.ts +4 -4
  10. package/types/java/lang/Class/index.d.ts +7 -4
  11. package/types/java/lang/reflect/Constructor/index.d.ts +1 -1
  12. package/types/java/lang/reflect/Method/index.d.ts +1 -1
  13. package/types/java/nio/file/FileSystem/index.d.ts +1 -1
  14. package/types/java/nio/file/Path/index.d.ts +3 -3
  15. package/types/java/nio/file/Watchable/index.d.ts +2 -2
  16. package/types/java/nio/file/spi/FileSystemProvider/index.d.ts +18 -14
  17. package/types/java/text/DateFormatSymbols/index.d.ts +7 -7
  18. package/types/java/time/format/DateTimeFormatter/index.d.ts +2 -2
  19. package/types/java/util/stream/Collector/index.d.ts +2 -2
  20. package/types/java/util/stream/DoubleStream/index.d.ts +1 -1
  21. package/types/java/util/stream/IntStream/index.d.ts +1 -1
  22. package/types/java/util/stream/LongStream/index.d.ts +1 -1
  23. package/types/java/util/stream/Stream/index.d.ts +1 -1
  24. package/types/javax/jcr/nodetype/NodeDefinitionTemplate/index.d.ts +1 -1
  25. package/types/javax/jcr/nodetype/NodeTypeTemplate/index.d.ts +1 -1
  26. package/types/javax/jcr/nodetype/PropertyDefinitionTemplate/index.d.ts +2 -2
  27. package/types/javax/jcr/observation/ObservationManager/index.d.ts +4 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitevision/api",
3
- "version": "2023.2.2-beta.2",
3
+ "version": "2023.2.2-beta.3",
4
4
  "author": "Sitevision AB",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -979,7 +979,7 @@ export interface ArraysInstance {
979
979
  * @param anArray the array by which the list will be backed
980
980
  * @return a list view of the specified array
981
981
  */
982
- asList(anArray: unknown[]): List;
982
+ asList(...anArray: unknown[]): List;
983
983
 
984
984
  /**
985
985
  * Returns a hash code based on the contents of the specified array.
@@ -523,7 +523,7 @@ export interface CollectionsInstance {
523
523
  * @throws NullPointerException if <tt>aValues</tt> contains one or more null values and <tt>aCollection</tt> does not permit null&#xA; elements, or if <tt>aCollection</tt> or <tt>aValues</tt> are <tt>null</tt>
524
524
  * @throws IllegalArgumentException if some property of a value in <tt>aValues</tt> prevents it from being added to <tt>aCollection</tt>
525
525
  */
526
- addAll(aCollection: Collection | unknown[], aValues: unknown[]): boolean;
526
+ addAll(aCollection: Collection | unknown[], ...aValues: unknown[]): boolean;
527
527
 
528
528
  /**
529
529
  * Returns a set backed by the specified map.
@@ -1467,7 +1467,7 @@ export interface NodeTypeUtil extends NodeTypeUtilConstants {
1467
1467
  * @param aPrimaryNodeTypes the primary node type names <code>aNode</code> should be checked against
1468
1468
  * @return whether primary node type of <code>aNode</code> matches any of the types in <code>aPrimaryNodeTypes</code>
1469
1469
  */
1470
- isTypeOf(aNode: Node, aPrimaryNodeTypes: String | string[]): boolean;
1470
+ isTypeOf(aNode: Node, ...aPrimaryNodeTypes: String[] | string[]): boolean;
1471
1471
  }
1472
1472
 
1473
1473
  declare namespace NodeTypeUtil {}
@@ -358,7 +358,7 @@ export interface PermissionUtil {
358
358
  * @see #hasPermissions(Node, Node, Permission...)
359
359
  * @since Sitevision 3.6
360
360
  */
361
- hasPermissions(aPermissions: Permission[]): boolean;
361
+ hasPermissions(...aPermissions: Permission[]): boolean;
362
362
 
363
363
  /**
364
364
  * Checks if current user has certain permission on a certain tree node.
@@ -380,7 +380,7 @@ export interface PermissionUtil {
380
380
  * @see #hasPermissions(Node, Node, Permission...)
381
381
  * @since Sitevision 3.6
382
382
  */
383
- hasPermissions(aTreeNode: Node, aPermissions: Permission[]): boolean;
383
+ hasPermissions(aTreeNode: Node, ...aPermissions: Permission[]): boolean;
384
384
 
385
385
  /**
386
386
  * Checks if a certain user has a certain permission on a certain tree node.
@@ -411,7 +411,7 @@ export interface PermissionUtil {
411
411
  hasPermissions(
412
412
  aTreeNode: Node,
413
413
  aUserNode: Node,
414
- aPermissions: Permission[]
414
+ ...aPermissions: Permission[]
415
415
  ): boolean;
416
416
  }
417
417
 
@@ -112,7 +112,10 @@ export interface Properties {
112
112
  * @throws Exception if the scripting engine fails to convert property values to a native Javascript object
113
113
  * @see #getEscaped(Object, String...)
114
114
  */
115
- get(aJcrNodeResolvable: unknown, aPropertyNames: String | string[]): unknown;
115
+ get(
116
+ aJcrNodeResolvable: unknown,
117
+ ...aPropertyNames: String[] | string[]
118
+ ): unknown;
116
119
 
117
120
  /**
118
121
  * Gets escaped named properties from a given Node-resolvable object.
@@ -128,7 +131,7 @@ export interface Properties {
128
131
  */
129
132
  getEscaped(
130
133
  aJcrNodeResolvable: unknown,
131
- aPropertyNames: String | string[]
134
+ ...aPropertyNames: String[] | string[]
132
135
  ): unknown;
133
136
 
134
137
  /**
@@ -151,7 +154,7 @@ export interface Properties {
151
154
  * @see #getArrayEscaped(Object, String...)
152
155
  * @since Sitevision 6.1
153
156
  */
154
- getArray(aIterable: unknown, aPropertyNames: String | string[]): unknown;
157
+ getArray(aIterable: unknown, ...aPropertyNames: String[] | string[]): unknown;
155
158
 
156
159
  /**
157
160
  * Processes an iterable object and returns an array of escaped named properties for each Node-resolvable object that is iterated.
@@ -167,7 +170,7 @@ export interface Properties {
167
170
  */
168
171
  getArrayEscaped(
169
172
  aIterable: unknown,
170
- aPropertyNames: String | string[]
173
+ ...aPropertyNames: String[] | string[]
171
174
  ): unknown;
172
175
  }
173
176
 
@@ -89,7 +89,7 @@ export interface TagUtil {
89
89
  * @throws IllegalArgumentException if aTaggableNode is null or an unsupported type,&#xA; or if or aTagNodes is null, empty or contains an unsupported type
90
90
  * @throws RepositoryException if mutation is not allowed or fails
91
91
  */
92
- addTags(aTaggableNode: Node, aTagNodes: Node[]): void;
92
+ addTags(aTaggableNode: Node, ...aTagNodes: Node[]): void;
93
93
 
94
94
  /**
95
95
  * Removes a sv:tag from a Node.
@@ -303,7 +303,7 @@ export type PrintStream = FilterOutputStream &
303
303
  * @return This output stream
304
304
  * @since 1.5
305
305
  */
306
- printf(format: String | string, args: unknown[]): PrintStream;
306
+ printf(format: String | string, ...args: unknown[]): PrintStream;
307
307
 
308
308
  /**
309
309
  * A convenience method to write a formatted string to this output stream
@@ -322,7 +322,7 @@ export type PrintStream = FilterOutputStream &
322
322
  * @return This output stream
323
323
  * @since 1.5
324
324
  */
325
- printf(l: Locale, format: String | string, args: unknown[]): PrintStream;
325
+ printf(l: Locale, format: String | string, ...args: unknown[]): PrintStream;
326
326
 
327
327
  /**
328
328
  * Writes a formatted string to this output stream using the specified
@@ -338,7 +338,7 @@ export type PrintStream = FilterOutputStream &
338
338
  * @return This output stream
339
339
  * @since 1.5
340
340
  */
341
- format(format: String | string, args: unknown[]): PrintStream;
341
+ format(format: String | string, ...args: unknown[]): PrintStream;
342
342
 
343
343
  /**
344
344
  * Writes a formatted string to this output stream using the specified
@@ -351,7 +351,7 @@ export type PrintStream = FilterOutputStream &
351
351
  * @return This output stream
352
352
  * @since 1.5
353
353
  */
354
- format(l: Locale, format: String | string, args: unknown[]): PrintStream;
354
+ format(l: Locale, format: String | string, ...args: unknown[]): PrintStream;
355
355
 
356
356
  /**
357
357
  * Appends the specified character sequence to this output stream.
@@ -294,7 +294,7 @@ export type PrintWriter = Writer & {
294
294
  * @return This writer
295
295
  * @since 1.5
296
296
  */
297
- printf(format: String | string, args: unknown[]): PrintWriter;
297
+ printf(format: String | string, ...args: unknown[]): PrintWriter;
298
298
 
299
299
  /**
300
300
  * A convenience method to write a formatted string to this writer using
@@ -314,7 +314,7 @@ export type PrintWriter = Writer & {
314
314
  * @return This writer
315
315
  * @since 1.5
316
316
  */
317
- printf(l: Locale, format: String | string, args: unknown[]): PrintWriter;
317
+ printf(l: Locale, format: String | string, ...args: unknown[]): PrintWriter;
318
318
 
319
319
  /**
320
320
  * Writes a formatted string to this writer using the specified format
@@ -331,7 +331,7 @@ export type PrintWriter = Writer & {
331
331
  * @return This writer
332
332
  * @since 1.5
333
333
  */
334
- format(format: String | string, args: unknown[]): PrintWriter;
334
+ format(format: String | string, ...args: unknown[]): PrintWriter;
335
335
 
336
336
  /**
337
337
  * Writes a formatted string to this writer using the specified format
@@ -345,7 +345,7 @@ export type PrintWriter = Writer & {
345
345
  * @return This writer
346
346
  * @since 1.5
347
347
  */
348
- format(l: Locale, format: String | string, args: unknown[]): PrintWriter;
348
+ format(l: Locale, format: String | string, ...args: unknown[]): PrintWriter;
349
349
 
350
350
  /**
351
351
  * Appends the specified character sequence to this writer.
@@ -825,7 +825,7 @@ export type Class = Object &
825
825
  * @jls 8.4 Method Declarations
826
826
  * @since JDK1.1
827
827
  */
828
- getMethod(name: String | string, parameterTypes: Class[]): Method;
828
+ getMethod(name: String | string, ...parameterTypes: Class[]): Method;
829
829
 
830
830
  /**
831
831
  * Returns a {@code Constructor} object that reflects the specified
@@ -847,7 +847,7 @@ export type Class = Object &
847
847
  * @throws SecurityException&#xA; If a security manager, <i>s</i>, is present and&#xA; the caller's class loader is not the same as or an&#xA; ancestor of the class loader for the current class and&#xA; invocation of {@link SecurityManager#checkPackageAccess&#xA; s.checkPackageAccess()} denies access to the package&#xA; of this class.
848
848
  * @since JDK1.1
849
849
  */
850
- getConstructor(parameterTypes: Class[]): Constructor;
850
+ getConstructor(...parameterTypes: Class[]): Constructor;
851
851
 
852
852
  /**
853
853
  * Returns an array of {@code Class} objects reflecting all the
@@ -980,7 +980,10 @@ export type Class = Object &
980
980
  * @jls 8.4 Method Declarations
981
981
  * @since JDK1.1
982
982
  */
983
- getDeclaredMethod(name: String | string, parameterTypes: Class[]): Method;
983
+ getDeclaredMethod(
984
+ name: String | string,
985
+ ...parameterTypes: Class[]
986
+ ): Method;
984
987
 
985
988
  /**
986
989
  * Returns a {@code Constructor} object that reflects the specified
@@ -998,7 +1001,7 @@ export type Class = Object &
998
1001
  * @throws SecurityException&#xA; If a security manager, <i>s</i>, is present and any of the&#xA; following conditions is met:&#xA;&#xA; <ul>&#xA;&#xA; <li> the caller's class loader is not the same as the&#xA; class loader of this class and invocation of&#xA; {@link SecurityManager#checkPermission&#xA; s.checkPermission} method with&#xA; {@code RuntimePermission("accessDeclaredMembers")}&#xA; denies access to the declared constructor&#xA;&#xA; <li> the caller's class loader is not the same as or an&#xA; ancestor of the class loader for the current class and&#xA; invocation of {@link SecurityManager#checkPackageAccess&#xA; s.checkPackageAccess()} denies access to the package&#xA; of this class&#xA;&#xA; </ul>
999
1002
  * @since JDK1.1
1000
1003
  */
1001
- getDeclaredConstructor(parameterTypes: Class[]): Constructor;
1004
+ getDeclaredConstructor(...parameterTypes: Class[]): Constructor;
1002
1005
 
1003
1006
  /**
1004
1007
  * Finds a resource with a given name. The rules for searching resources
@@ -188,7 +188,7 @@ export type Constructor = Executable & {
188
188
  * @throws InvocationTargetException if the underlying constructor&#xA; throws an exception.
189
189
  * @throws ExceptionInInitializerError if the initialization provoked&#xA; by this method fails.
190
190
  */
191
- newInstance(initargs: unknown[]): unknown;
191
+ newInstance(...initargs: unknown[]): unknown;
192
192
 
193
193
  /**
194
194
  * {@inheritDoc}
@@ -234,7 +234,7 @@ export type Method = Executable & {
234
234
  * @throws NullPointerException if the specified object is null&#xA; and the method is an instance method.
235
235
  * @throws ExceptionInInitializerError if the initialization&#xA; provoked by this method fails.
236
236
  */
237
- invoke(obj: unknown, args: unknown[]): unknown;
237
+ invoke(obj: unknown, ...args: unknown[]): unknown;
238
238
 
239
239
  /**
240
240
  * Returns {@code true} if this method is a bridge
@@ -243,7 +243,7 @@ export type FileSystem = Object &
243
243
  * @return the resulting {@code Path}
244
244
  * @throws InvalidPathException&#xA; If the path string cannot be converted
245
245
  */
246
- getPath(first: String | string, more: String | string[]): Path;
246
+ getPath(first: String | string, ...more: String[] | string[]): Path;
247
247
 
248
248
  /**
249
249
  * Returns a {@code PathMatcher} that performs match operations on the
@@ -451,7 +451,7 @@ export type Path = Comparable &
451
451
  * @throws IOException&#xA; if the file does not exist or an I/O error occurs
452
452
  * @throws SecurityException&#xA; In the case of the default provider, and a security manager&#xA; is installed, its {@link SecurityManager#checkRead(String) checkRead}&#xA; method is invoked to check read access to the file, and where&#xA; this path is not absolute, its {@link SecurityManager#checkPropertyAccess(String)&#xA; checkPropertyAccess} method is invoked to check access to the&#xA; system property {@code user.dir}
453
453
  */
454
- toRealPath(options: LinkOption[]): Path;
454
+ toRealPath(...options: LinkOption[]): Path;
455
455
 
456
456
  /**
457
457
  * Returns a {@link File} object representing this path. Where this {@code
@@ -513,7 +513,7 @@ export type Path = Comparable &
513
513
  register(
514
514
  watcher: WatchService,
515
515
  events: Kind[],
516
- modifiers: Modifier[]
516
+ ...modifiers: Modifier[]
517
517
  ): WatchKey;
518
518
 
519
519
  /**
@@ -544,7 +544,7 @@ export type Path = Comparable &
544
544
  * @throws IOException&#xA; If an I/O error occurs
545
545
  * @throws SecurityException&#xA; In the case of the default provider, and a security manager is&#xA; installed, the {@link SecurityManager#checkRead(String) checkRead}&#xA; method is invoked to check read access to the file.
546
546
  */
547
- register(watcher: WatchService, events: Kind[]): WatchKey;
547
+ register(watcher: WatchService, ...events: Kind[]): WatchKey;
548
548
 
549
549
  /**
550
550
  * Returns an iterator over the name elements of this path.
@@ -47,7 +47,7 @@ export type Watchable = {
47
47
  register(
48
48
  watcher: WatchService,
49
49
  events: Kind[],
50
- modifiers: Modifier[]
50
+ ...modifiers: Modifier[]
51
51
  ): WatchKey;
52
52
 
53
53
  /**
@@ -67,5 +67,5 @@ export type Watchable = {
67
67
  * @throws IOException&#xA; if an I/O error occurs
68
68
  * @throws SecurityException&#xA; if a security manager is installed and it denies an unspecified&#xA; permission required to monitor this object. Implementations of&#xA; this interface should specify the permission checks.
69
69
  */
70
- register(watcher: WatchService, events: Kind[]): WatchKey;
70
+ register(watcher: WatchService, ...events: Kind[]): WatchKey;
71
71
  };
@@ -188,7 +188,7 @@ export type FileSystemProvider = Object & {
188
188
  * @throws IOException&#xA; if an I/O error occurs
189
189
  * @throws SecurityException&#xA; In the case of the default provider, and a security manager is&#xA; installed, the {@link SecurityManager#checkRead(String) checkRead}&#xA; method is invoked to check read access to the file.
190
190
  */
191
- newInputStream(path: Path, options: OpenOption[]): InputStream;
191
+ newInputStream(path: Path, ...options: OpenOption[]): InputStream;
192
192
 
193
193
  /**
194
194
  * Opens or creates a file, returning an output stream that may be used to
@@ -207,7 +207,7 @@ export type FileSystemProvider = Object & {
207
207
  * @throws IOException&#xA; if an I/O error occurs
208
208
  * @throws SecurityException&#xA; In the case of the default provider, and a security manager is&#xA; installed, the {@link SecurityManager#checkWrite(String) checkWrite}&#xA; method is invoked to check write access to the file. The {@link&#xA; SecurityManager#checkDelete(String) checkDelete} method is&#xA; invoked to check delete access if the file is opened with the&#xA; {@code DELETE_ON_CLOSE} option.
209
209
  */
210
- newOutputStream(path: Path, options: OpenOption[]): OutputStream;
210
+ newOutputStream(path: Path, ...options: OpenOption[]): OutputStream;
211
211
 
212
212
  /**
213
213
  * Opens or creates a file for reading and/or writing, returning a file
@@ -230,7 +230,7 @@ export type FileSystemProvider = Object & {
230
230
  newFileChannel(
231
231
  path: Path,
232
232
  options: Set | unknown[],
233
- attrs: FileAttribute[]
233
+ ...attrs: FileAttribute[]
234
234
  ): FileChannel;
235
235
 
236
236
  /**
@@ -258,7 +258,7 @@ export type FileSystemProvider = Object & {
258
258
  path: Path,
259
259
  options: Set | unknown[],
260
260
  executor: ExecutorService,
261
- attrs: FileAttribute[]
261
+ ...attrs: FileAttribute[]
262
262
  ): AsynchronousFileChannel;
263
263
 
264
264
  /**
@@ -278,7 +278,7 @@ export type FileSystemProvider = Object & {
278
278
  newByteChannel(
279
279
  path: Path,
280
280
  options: Set | unknown[],
281
- attrs: FileAttribute[]
281
+ ...attrs: FileAttribute[]
282
282
  ): SeekableByteChannel;
283
283
 
284
284
  /**
@@ -306,7 +306,7 @@ export type FileSystemProvider = Object & {
306
306
  * @throws IOException&#xA; if an I/O error occurs or the parent directory does not exist
307
307
  * @throws SecurityException&#xA; In the case of the default provider, and a security manager is&#xA; installed, the {@link SecurityManager#checkWrite(String) checkWrite}&#xA; method is invoked to check write access to the new directory.
308
308
  */
309
- createDirectory(dir: Path, attrs: FileAttribute[]): void;
309
+ createDirectory(dir: Path, ...attrs: FileAttribute[]): void;
310
310
 
311
311
  /**
312
312
  * Creates a symbolic link to a target. This method works in exactly the
@@ -322,7 +322,7 @@ export type FileSystemProvider = Object & {
322
322
  * @throws IOException&#xA; if an I/O error occurs
323
323
  * @throws SecurityException&#xA; In the case of the default provider, and a security manager&#xA; is installed, it denies {@link LinkPermission}<tt>("symbolic")</tt>&#xA; or its {@link SecurityManager#checkWrite(String) checkWrite}&#xA; method denies write access to the path of the symbolic link.
324
324
  */
325
- createSymbolicLink(link: Path, target: Path, attrs: FileAttribute[]): void;
325
+ createSymbolicLink(link: Path, target: Path, ...attrs: FileAttribute[]): void;
326
326
 
327
327
  /**
328
328
  * Creates a new link (directory entry) for an existing file. This method
@@ -395,7 +395,7 @@ export type FileSystemProvider = Object & {
395
395
  * @throws IOException&#xA; if an I/O error occurs
396
396
  * @throws SecurityException&#xA; In the case of the default provider, and a security manager is&#xA; installed, the {@link SecurityManager#checkRead(String) checkRead}&#xA; method is invoked to check read access to the source file, the&#xA; {@link SecurityManager#checkWrite(String) checkWrite} is invoked&#xA; to check write access to the target file. If a symbolic link is&#xA; copied the security manager is invoked to check {@link&#xA; LinkPermission}{@code ("symbolic")}.
397
397
  */
398
- copy(source: Path, target: Path, options: CopyOption[]): void;
398
+ copy(source: Path, target: Path, ...options: CopyOption[]): void;
399
399
 
400
400
  /**
401
401
  * Move or rename a file to a target file. This method works in exactly the
@@ -411,7 +411,7 @@ export type FileSystemProvider = Object & {
411
411
  * @throws IOException&#xA; if an I/O error occurs
412
412
  * @throws SecurityException&#xA; In the case of the default provider, and a security manager is&#xA; installed, the {@link SecurityManager#checkWrite(String) checkWrite}&#xA; method is invoked to check write access to both the source and&#xA; target file.
413
413
  */
414
- move(source: Path, target: Path, options: CopyOption[]): void;
414
+ move(source: Path, target: Path, ...options: CopyOption[]): void;
415
415
 
416
416
  /**
417
417
  * Tests if two paths locate the same file. This method works in exactly the
@@ -501,7 +501,7 @@ export type FileSystemProvider = Object & {
501
501
  * @throws IOException&#xA; if an I/O error occurs
502
502
  * @throws SecurityException&#xA; In the case of the default provider, and a security manager is&#xA; installed, the {@link SecurityManager#checkRead(String) checkRead}&#xA; is invoked when checking read access to the file or only the&#xA; existence of the file, the {@link SecurityManager#checkWrite(String)&#xA; checkWrite} is invoked when checking write access to the file,&#xA; and {@link SecurityManager#checkExec(String) checkExec} is invoked&#xA; when checking execute access.
503
503
  */
504
- checkAccess(path: Path, modes: AccessMode[]): void;
504
+ checkAccess(path: Path, ...modes: AccessMode[]): void;
505
505
 
506
506
  /**
507
507
  * Returns a file attribute view of a given type. This method works in
@@ -513,7 +513,11 @@ export type FileSystemProvider = Object & {
513
513
  * @param options&#xA; options indicating how symbolic links are handled
514
514
  * @return a file attribute view of the specified type, or {@code null} if&#xA; the attribute view type is not available
515
515
  */
516
- getFileAttributeView(path: Path, type: Class, options: LinkOption[]): unknown;
516
+ getFileAttributeView(
517
+ path: Path,
518
+ type: Class,
519
+ ...options: LinkOption[]
520
+ ): unknown;
517
521
 
518
522
  /**
519
523
  * Reads a file's attributes as a bulk operation. This method works in
@@ -528,7 +532,7 @@ export type FileSystemProvider = Object & {
528
532
  * @throws IOException&#xA; if an I/O error occurs
529
533
  * @throws SecurityException&#xA; In the case of the default provider, a security manager is&#xA; installed, its {@link SecurityManager#checkRead(String) checkRead}&#xA; method is invoked to check read access to the file
530
534
  */
531
- readAttributes(path: Path, type: Class, options: LinkOption[]): unknown;
535
+ readAttributes(path: Path, type: Class, ...options: LinkOption[]): unknown;
532
536
 
533
537
  /**
534
538
  * Reads a set of file attributes as a bulk operation. This method works in
@@ -546,7 +550,7 @@ export type FileSystemProvider = Object & {
546
550
  readAttributes(
547
551
  path: Path,
548
552
  attributes: String | string,
549
- options: LinkOption[]
553
+ ...options: LinkOption[]
550
554
  ): Map;
551
555
 
552
556
  /**
@@ -566,6 +570,6 @@ export type FileSystemProvider = Object & {
566
570
  path: Path,
567
571
  attribute: String | string,
568
572
  value: unknown,
569
- options: LinkOption[]
573
+ ...options: LinkOption[]
570
574
  ): void;
571
575
  };
@@ -62,7 +62,7 @@ export type DateFormatSymbols = Object &
62
62
  * Sets era strings. For example: "AD" and "BC".
63
63
  * @param newEras the new era strings.
64
64
  */
65
- setEras(newEras: String | string[]): void;
65
+ setEras(newEras: String[] | string[]): void;
66
66
 
67
67
  /**
68
68
  * Gets month strings. For example: "January", "February", etc.
@@ -84,7 +84,7 @@ export type DateFormatSymbols = Object &
84
84
  * Sets month strings. For example: "January", "February", etc.
85
85
  * @param newMonths the new month strings.
86
86
  */
87
- setMonths(newMonths: String | string[]): void;
87
+ setMonths(newMonths: String[] | string[]): void;
88
88
 
89
89
  /**
90
90
  * Gets short month strings. For example: "Jan", "Feb", etc.
@@ -106,7 +106,7 @@ export type DateFormatSymbols = Object &
106
106
  * Sets short month strings. For example: "Jan", "Feb", etc.
107
107
  * @param newShortMonths the new short month strings.
108
108
  */
109
- setShortMonths(newShortMonths: String | string[]): void;
109
+ setShortMonths(newShortMonths: String[] | string[]): void;
110
110
 
111
111
  /**
112
112
  * Gets weekday strings. For example: "Sunday", "Monday", etc.
@@ -118,7 +118,7 @@ export type DateFormatSymbols = Object &
118
118
  * Sets weekday strings. For example: "Sunday", "Monday", etc.
119
119
  * @param newWeekdays the new weekday strings. The array should&#xA; be indexed by <code>Calendar.SUNDAY</code>,&#xA; <code>Calendar.MONDAY</code>, etc.
120
120
  */
121
- setWeekdays(newWeekdays: String | string[]): void;
121
+ setWeekdays(newWeekdays: String[] | string[]): void;
122
122
 
123
123
  /**
124
124
  * Gets short weekday strings. For example: "Sun", "Mon", etc.
@@ -130,7 +130,7 @@ export type DateFormatSymbols = Object &
130
130
  * Sets short weekday strings. For example: "Sun", "Mon", etc.
131
131
  * @param newShortWeekdays the new short weekday strings. The array should&#xA; be indexed by <code>Calendar.SUNDAY</code>,&#xA; <code>Calendar.MONDAY</code>, etc.
132
132
  */
133
- setShortWeekdays(newShortWeekdays: String | string[]): void;
133
+ setShortWeekdays(newShortWeekdays: String[] | string[]): void;
134
134
 
135
135
  /**
136
136
  * Gets ampm strings. For example: "AM" and "PM".
@@ -142,7 +142,7 @@ export type DateFormatSymbols = Object &
142
142
  * Sets ampm strings. For example: "AM" and "PM".
143
143
  * @param newAmpms the new ampm strings.
144
144
  */
145
- setAmPmStrings(newAmpms: String | string[]): void;
145
+ setAmPmStrings(newAmpms: String[] | string[]): void;
146
146
 
147
147
  /**
148
148
  * Gets time zone strings. Use of this method is discouraged; use
@@ -210,7 +210,7 @@ export type DateFormatSymbols = Object &
210
210
  * @throws NullPointerException if <code>newZoneStrings</code> is null
211
211
  * @see #getZoneStrings()
212
212
  */
213
- setZoneStrings(newZoneStrings: String | string[][]): void;
213
+ setZoneStrings(newZoneStrings: String[][] | string[][]): void;
214
214
 
215
215
  /**
216
216
  * Gets localized date-time pattern characters. For example: 'u', 't', etc.
@@ -604,7 +604,7 @@ export type DateTimeFormatter = Object & {
604
604
  * @param resolverFields the new set of resolver fields, null if no fields
605
605
  * @return a formatter based on this formatter with the requested resolver style, not null
606
606
  */
607
- withResolverFields(resolverFields: TemporalField[]): DateTimeFormatter;
607
+ withResolverFields(...resolverFields: TemporalField[]): DateTimeFormatter;
608
608
 
609
609
  /**
610
610
  * Returns a copy of this formatter with a new set of resolver fields.
@@ -767,7 +767,7 @@ export type DateTimeFormatter = Object & {
767
767
  * @throws IllegalArgumentException if less than 2 types are specified
768
768
  * @throws DateTimeParseException if unable to parse the requested result
769
769
  */
770
- parseBest(text: CharSequence, queries: TemporalQuery[]): TemporalAccessor;
770
+ parseBest(text: CharSequence, ...queries: TemporalQuery[]): TemporalAccessor;
771
771
 
772
772
  /**
773
773
  * Parses the text using this formatter, without resolving the result, intended
@@ -186,7 +186,7 @@ export type Collector = {
186
186
  supplier: Supplier,
187
187
  accumulator: BiConsumer,
188
188
  combiner: BinaryOperator,
189
- characteristics: Characteristics[]
189
+ ...characteristics: Characteristics[]
190
190
  ): Collector;
191
191
 
192
192
  /**
@@ -208,6 +208,6 @@ export type Collector = {
208
208
  accumulator: BiConsumer,
209
209
  combiner: BinaryOperator,
210
210
  finisher: Function,
211
- characteristics: Characteristics[]
211
+ ...characteristics: Characteristics[]
212
212
  ): Collector;
213
213
  };
@@ -560,7 +560,7 @@ export type DoubleStream = BaseStream & {
560
560
  * @param values the elements of the new stream
561
561
  * @return the new stream
562
562
  */
563
- of(values: number[]): DoubleStream;
563
+ of(...values: number[]): DoubleStream;
564
564
 
565
565
  /**
566
566
  * Returns an infinite sequential ordered {@code DoubleStream} produced by iterative
@@ -532,7 +532,7 @@ export type IntStream = BaseStream & {
532
532
  * @param values the elements of the new stream
533
533
  * @return the new stream
534
534
  */
535
- of(values: number[]): IntStream;
535
+ of(...values: number[]): IntStream;
536
536
 
537
537
  /**
538
538
  * Returns an infinite sequential ordered {@code IntStream} produced by iterative
@@ -522,7 +522,7 @@ export type LongStream = BaseStream & {
522
522
  * @param values the elements of the new stream
523
523
  * @return the new stream
524
524
  */
525
- of(values: number[]): LongStream;
525
+ of(...values: number[]): LongStream;
526
526
 
527
527
  /**
528
528
  * Returns an infinite sequential ordered {@code LongStream} produced by iterative
@@ -707,7 +707,7 @@ export type Stream = BaseStream & {
707
707
  * @param values the elements of the new stream
708
708
  * @return the new stream
709
709
  */
710
- of(values: unknown[]): Stream;
710
+ of(...values: unknown[]): Stream;
711
711
 
712
712
  /**
713
713
  * Returns an infinite sequential ordered {@code Stream} produced by iterative
@@ -55,7 +55,7 @@ export type NodeDefinitionTemplate = NodeDefinition & {
55
55
  * @param names an array of JCR names.
56
56
  * @throws ConstraintViolationException if <code>names</code> includes a&#xA; name that is not a syntactically valid JCR name in either qualified or expanded form.
57
57
  */
58
- setRequiredPrimaryTypeNames(names: String | string[]): void;
58
+ setRequiredPrimaryTypeNames(names: String[] | string[]): void;
59
59
 
60
60
  /**
61
61
  * Sets the name of the default primary type of this node.
@@ -37,7 +37,7 @@ export type NodeTypeTemplate = NodeTypeDefinition & {
37
37
  * @param names an array of JCR names.
38
38
  * @throws ConstraintViolationException if <code>names</code> includes a&#xA; name that is not a syntactically valid JCR name in either qualified or expanded form.
39
39
  */
40
- setDeclaredSuperTypeNames(names: String | string[]): void;
40
+ setDeclaredSuperTypeNames(names: String[] | string[]): void;
41
41
 
42
42
  /**
43
43
  * Sets the abstract flag of the node type.
@@ -61,7 +61,7 @@ export type PropertyDefinitionTemplate = PropertyDefinition & {
61
61
  * Sets the value constraints of the property.
62
62
  * @param constraints a <code>String</code> array.
63
63
  */
64
- setValueConstraints(constraints: String | string[]): void;
64
+ setValueConstraints(constraints: String[] | string[]): void;
65
65
 
66
66
  /**
67
67
  * Sets the default value (or values, in the case of a multi-value property)
@@ -80,7 +80,7 @@ export type PropertyDefinitionTemplate = PropertyDefinition & {
80
80
  * Sets the queryable status of the property.
81
81
  * @param operators an array of String constants. See {@link&#xA; PropertyDefinition#getAvailableQueryOperators()} .
82
82
  */
83
- setAvailableQueryOperators(operators: String | string[]): void;
83
+ setAvailableQueryOperators(operators: String[] | string[]): void;
84
84
 
85
85
  /**
86
86
  * Sets the full-text-searchable status of the property.
@@ -76,8 +76,8 @@ export type ObservationManager = {
76
76
  eventTypes: number,
77
77
  absPath: String | string,
78
78
  isDeep: boolean,
79
- uuid: String | string[],
80
- nodeTypeName: String | string[],
79
+ uuid: String[] | string[],
80
+ nodeTypeName: String[] | string[],
81
81
  noLocal: boolean
82
82
  ): void;
83
83
 
@@ -150,7 +150,7 @@ export type ObservationManager = {
150
150
  eventTypes: number,
151
151
  absPath: String | string,
152
152
  isDeep: boolean,
153
- uuid: String | string[],
154
- nodeTypeName: String | string[]
153
+ uuid: String[] | string[],
154
+ nodeTypeName: String[] | string[]
155
155
  ): EventJournal;
156
156
  };