File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1313,10 +1313,10 @@ class ParseQuery {
1313
1313
/**
1314
1314
* Includes nested Parse.Objects for the provided key. You can use dot
1315
1315
* notation to specify which fields in the included object are also fetched.
1316
- * @param {String } key The name of the key to include.
1316
+ * @param {... String|Array<String> } key The name(s) of the key(s) to include.
1317
1317
* @return {Parse.Query } Returns the query, so you can chain this call.
1318
1318
*/
1319
- include ( ...keys : Array < string > ) : ParseQuery {
1319
+ include ( ...keys : Array < string | Array < string > >) : ParseQuery {
1320
1320
keys . forEach ( ( key ) => {
1321
1321
if ( Array . isArray ( key ) ) {
1322
1322
this . _include = this . _include . concat ( key ) ;
@@ -1331,10 +1331,10 @@ class ParseQuery {
1331
1331
* Restricts the fields of the returned Parse.Objects to include only the
1332
1332
* provided keys. If this is called multiple times, then all of the keys
1333
1333
* specified in each of the calls will be included.
1334
- * @param {Array } keys The names of the keys to include.
1334
+ * @param {...String| Array<String> } keys The name(s) of the key(s) to include.
1335
1335
* @return {Parse.Query } Returns the query, so you can chain this call.
1336
1336
*/
1337
- select ( ...keys : Array < string > ) : ParseQuery {
1337
+ select ( ...keys : Array < string | Array < string > >) : ParseQuery {
1338
1338
if ( ! this . _select ) {
1339
1339
this . _select = [ ] ;
1340
1340
}
You can’t perform that action at this time.
0 commit comments