@hylid/types 4.0.23 → 4.0.24-alpha.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.
Files changed (2) hide show
  1. package/lib/mp.d.ts +17 -1
  2. package/package.json +1 -1
package/lib/mp.d.ts CHANGED
@@ -38,7 +38,12 @@ export interface MPApi extends Omit<MiniprogramApi, 'request'> {
38
38
  }): void;
39
39
  batchQueryCdpSpaceInfo(args?: any): void;
40
40
  exitApp(args?: any): void;
41
- getAppToken(args?: any): void;
41
+ getAppToken: (args: {
42
+ appName: string;
43
+ appKey: string;
44
+ } & AsyncCallback<{
45
+ appToken: string;
46
+ }>) => void;
42
47
  getComponentAuth(args?: any): void;
43
48
  getPaymentCode(args?: any): void;
44
49
  getPhoneNumber(args?: any): void;
@@ -259,6 +264,17 @@ export interface MPApi extends Omit<MiniprogramApi, 'request'> {
259
264
  animation?: boolean;
260
265
  } & AsyncCallback<void>) => void;
261
266
  hideBackHome: () => void;
267
+ getClientInfo: (args: AsyncCallback<{
268
+ "client.version": string;
269
+ umidToken?: string;
270
+ "os.name": string;
271
+ verion: string;
272
+ "os.version": string;
273
+ "device.id": string;
274
+ channelId?: string;
275
+ model: string;
276
+ device: string;
277
+ }>) => void;
262
278
  }
263
279
  export declare type HeadModel = {
264
280
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hylid/types",
3
- "version": "4.0.23",
3
+ "version": "4.0.24-alpha.2",
4
4
  "main": "lib/index.js",
5
5
  "files": [
6
6
  "lib",