Skip to content

Commit 5a3820d

Browse files
mandarinidrlncode
andauthored
chore(storage): add type to params (#1744)
Co-authored-by: Darlin Daniel Arias M. <153409031+drlncode@users.noreply.github.com>
1 parent 0379c98 commit 5a3820d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/storage-js/src/packages/StorageFileApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ export default class StorageFileApi {
638638
options?: { download?: string | boolean; transform?: TransformOptions }
639639
): { data: { publicUrl: string } } {
640640
const _path = this._getFinalPath(path)
641-
const _queryString = []
641+
const _queryString: string[] = []
642642

643643
const downloadQueryParam = options?.download
644644
? `download=${options.download === true ? '' : options.download}`
@@ -865,7 +865,7 @@ export default class StorageFileApi {
865865
}
866866

867867
private transformOptsToQueryString(transform: TransformOptions) {
868-
const params = []
868+
const params: string[] = []
869869
if (transform.width) {
870870
params.push(`width=${transform.width}`)
871871
}

0 commit comments

Comments
 (0)