@stackedapp/types 1.9.11 → 1.9.13
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/dist/stacked-types.d.ts +6 -5
- package/package.json +1 -1
package/dist/stacked-types.d.ts
CHANGED
|
@@ -840,14 +840,15 @@ interface StackedUserComplete {
|
|
|
840
840
|
};
|
|
841
841
|
}
|
|
842
842
|
|
|
843
|
+
type StackedAsset = {
|
|
844
|
+
name: string;
|
|
845
|
+
image: string;
|
|
846
|
+
};
|
|
843
847
|
/** Relevant assets like currencies with name image information so that the client
|
|
844
848
|
* can render name/image
|
|
845
849
|
*/
|
|
846
850
|
interface StackedAssets {
|
|
847
|
-
currencies: Record<string,
|
|
848
|
-
name: string;
|
|
849
|
-
image: string;
|
|
850
|
-
}>;
|
|
851
|
+
currencies: Record<string, StackedAsset>;
|
|
851
852
|
}
|
|
852
853
|
|
|
853
854
|
/** Base campaigns response - shared fields between client and server */
|
|
@@ -858,7 +859,7 @@ interface StackedCampaignsBaseResponse extends StackedUserResponse {
|
|
|
858
859
|
* @deprecated
|
|
859
860
|
* look at assets for currencies asset information name/image. The actually currencies on
|
|
860
861
|
* the player is in stackedUser.currencies */
|
|
861
|
-
currencies?:
|
|
862
|
+
currencies?: Record<string, StackedAsset>;
|
|
862
863
|
/** Relevant assets like currencies with name image information so that the client
|
|
863
864
|
* can render name/image
|
|
864
865
|
*/
|