@iotexproject/kit 0.0.99 → 0.0.101

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +10 -7
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -8468,14 +8468,17 @@ declare class Contract extends BaseDBModule {
8468
8468
  address: string;
8469
8469
  }): Promise<number>;
8470
8470
  }
8471
+ export type ComponentType = "banner-latest" | "iotex-2.0";
8472
+ export interface ComponentData {
8473
+ id: ComponentType;
8474
+ fullScreenData: string;
8475
+ mobileData?: string;
8476
+ }
8471
8477
  declare class Resource {
8472
- getComponent({ id }: {
8473
- id: "banner-latest";
8474
- }): Promise<{
8475
- id: "banner-latest";
8476
- fullScreenData: string;
8477
- mobileData: string;
8478
- }>;
8478
+ getComponent({ id, mobile }: {
8479
+ id: ComponentType;
8480
+ mobile?: boolean;
8481
+ }): Promise<ComponentData>;
8479
8482
  }
8480
8483
  declare const modules$1: {
8481
8484
  account: Account;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@iotexproject/kit",
3
3
  "module": "index.ts",
4
4
  "type": "module",
5
- "version": "v0.0.99",
5
+ "version": "v0.0.101",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "scripts": {