Skip to content

Commit c87b86d

Browse files
committed
change to undefined as a fallback
1 parent 7c4e69f commit c87b86d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/Files/FilesAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class FilesAdapter {
3636
* @param {Config} config -(Optional) server configuration
3737
* @discussion config is not supported by all file adapters. Check the your adapter's documentation for compatibility
3838
*
39-
* @return {Promise<any>|Promise<{url?: string, name?: string, location?: string}>} Either a plain promise that should fail if storage didn't succeed, or a promise resolving to an object containing url and/or an updated filename and/or location (if relevant)
39+
* @return {Promise<{url?: string, name?: string, location?: string}>|Promise<undefined>} Either a plain promise that should fail if storage didn't succeed, or a promise resolving to an object containing url and/or an updated filename and/or location (if relevant)
4040
*/
4141
createFile(filename: string, data, contentType: string, options: Object, config: Config): Promise {}
4242

0 commit comments

Comments
 (0)