storyloco 1.14.0 → 1.14.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/asset/types.ts +7 -7
package/package.json
CHANGED
package/packages/asset/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { R2Asset, R2AssetAttributes } from 'moxyloco/r2'
|
|
2
2
|
|
|
3
3
|
interface StoryblokAsset {
|
|
4
4
|
/* The numeric ID */
|
|
@@ -49,22 +49,22 @@ export interface Asset extends Omit<StoryblokAsset, 'id'> {
|
|
|
49
49
|
id: string
|
|
50
50
|
|
|
51
51
|
/* The width of the asset */
|
|
52
|
-
width?:
|
|
52
|
+
width?: R2AssetAttributes['width']
|
|
53
53
|
|
|
54
54
|
/* The height of the asset */
|
|
55
|
-
height?:
|
|
55
|
+
height?: R2AssetAttributes['height']
|
|
56
56
|
|
|
57
57
|
/* The format of the asset */
|
|
58
|
-
format?:
|
|
58
|
+
format?: R2AssetAttributes['format']
|
|
59
59
|
|
|
60
60
|
/* Content type of the asset */
|
|
61
|
-
content_type?:
|
|
61
|
+
content_type?: R2AssetAttributes['content_type']
|
|
62
62
|
|
|
63
63
|
/* The size of the asset in bytes */
|
|
64
|
-
size_bytes:
|
|
64
|
+
size_bytes: R2AssetAttributes['size_bytes']
|
|
65
65
|
|
|
66
66
|
/* The raw data from the database */
|
|
67
|
-
_data:
|
|
67
|
+
_data: R2Asset
|
|
68
68
|
|
|
69
69
|
/* The name of the asset ('Description' in Storyblok UI) */
|
|
70
70
|
name?: string
|