firebase-storage
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -162,3 +162,3 @@ export interface BucketObject { | ||
body: TreePartial<BucketObject>; | ||
}) => Promise<StorageObject[]>; | ||
}) => Promise<BucketObject[]>; | ||
type ParamType<T extends (...args: never[]) => unknown, P = Parameters<T>[0]> = Omit<P, "token" | "bucket"> & { | ||
@@ -179,4 +179,4 @@ bucket?: string; | ||
infoBucket: (params: ParamType<typeof infoBucket>) => Promise<BucketObject>; | ||
updateBucket: (params: ParamType<typeof updateBucket>) => Promise<StorageObject[]>; | ||
updateBucket: (params: ParamType<typeof updateBucket>) => Promise<BucketObject[]>; | ||
}; | ||
export {}; |
@@ -162,3 +162,3 @@ export interface BucketObject { | ||
body: TreePartial<BucketObject>; | ||
}) => Promise<StorageObject[]>; | ||
}) => Promise<BucketObject[]>; | ||
type ParamType<T extends (...args: never[]) => unknown, P = Parameters<T>[0]> = Omit<P, "token" | "bucket"> & { | ||
@@ -179,4 +179,4 @@ bucket?: string; | ||
infoBucket: (params: ParamType<typeof infoBucket>) => Promise<BucketObject>; | ||
updateBucket: (params: ParamType<typeof updateBucket>) => Promise<StorageObject[]>; | ||
updateBucket: (params: ParamType<typeof updateBucket>) => Promise<BucketObject[]>; | ||
}; | ||
export {}; |
{ | ||
"name": "firebase-storage", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"main": "./dist/cjs/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./dist/cjs/index.d.ts", |
@@ -44,2 +44,4 @@ # firebase-storage | ||
await storage.del({ name: "test" }).then(console.log); | ||
await storage.infoBucket({ bucket }).then(console.log); | ||
await storage.updateBucket({ bucket, body: {} }).then(console.log); | ||
} | ||
@@ -46,0 +48,0 @@ |
27365
50