Skip to content

Commit d02621e

Browse files
authored
docs: Add missing Parse Server requirement to JSDoc for Parse.File.setDirectory() (#2930)
1 parent 2c457c1 commit d02621e

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

src/ParseFile.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ class ParseFile {
275275

276276
/**
277277
* Gets the directory of the file.
278+
* Requires Parse Server >= 9.4.0.
278279
*
279280
* @returns {string | undefined}
280281
*/
@@ -520,6 +521,7 @@ class ParseFile {
520521
/**
521522
* Sets the directory where the file will be stored.
522523
* Requires the Master Key when saving.
524+
* Requires Parse Server >= 9.4.0.
523525
*
524526
* @param {string} directory the directory path
525527
*/

types/ParseFile.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ declare class ParseFile {
140140
tags(): Record<string, any>;
141141
/**
142142
* Gets the directory of the file.
143+
* Requires Parse Server >= 9.4.0.
143144
*
144145
* @returns {string | undefined}
145146
*/
@@ -227,6 +228,7 @@ declare class ParseFile {
227228
/**
228229
* Sets the directory where the file will be stored.
229230
* Requires the Master Key when saving.
231+
* Requires Parse Server >= 9.4.0.
230232
*
231233
* @param {string} directory the directory path
232234
*/

0 commit comments

Comments
 (0)