Skip to content

Commit 4c49d79

Browse files
drlncodemandarini
authored andcommitted
chore(storage): add type to params
1 parent 2d0bd77 commit 4c49d79

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
@@ -625,7 +625,7 @@ export default class StorageFileApi {
625625
options?: { download?: string | boolean; transform?: TransformOptions }
626626
): { data: { publicUrl: string } } {
627627
const _path = this._getFinalPath(path)
628-
const _queryString = []
628+
const _queryString: string[] = []
629629

630630
const downloadQueryParam = options?.download
631631
? `download=${options.download === true ? '' : options.download}`
@@ -852,7 +852,7 @@ export default class StorageFileApi {
852852
}
853853

854854
private transformOptsToQueryString(transform: TransformOptions) {
855-
const params = []
855+
const params: string[] = []
856856
if (transform.width) {
857857
params.push(`width=${transform.width}`)
858858
}

0 commit comments

Comments
 (0)