@hylid/custom-jsapi 4.0.0-alpha.4 → 4.0.0-alpha.5

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/bridge.d.ts +4 -5
  2. package/package.json +4 -4
package/lib/bridge.d.ts CHANGED
@@ -1,9 +1,8 @@
1
1
  import { HyCustomJSAPI, GetGeneralAppInfo } from '@hylid/types';
2
- import { CLIENT } from '@hylid/env';
3
- export declare const bySpecificClient: <T extends unknown>(map: Partial<Record<"DANA" | "GCASH" | "DEMO" | "ALIPAY" | "ALIPAYHK" | "TNGD" | "TRUEMONEY" | "KAKAOPAY" | "KAKAOTALK" | "NAVERPAY" | "MPAY" | "TOSSPAY" | "HIPAY" | "CHOPE" | "VODAPAY" | "CHANGIPAY" | "OCBC" | "MANDIRI" | "NAYAPAY" | "TINABA" | "KASPI" | "H5" | "WECHAT" | "TNGD_H5NG", T>>, defaultValue: T) => (clientName: keyof typeof CLIENT) => T;
2
+ export declare const bySpecificClient: <T extends unknown>(map: Record<string, T>, defaultValue: T) => (clientName: string) => T;
4
3
  export declare const getCallAppLink: HyCustomJSAPI['getCallAppLink'];
5
- export declare const getCallAppLinkCreator: (clientName: keyof typeof CLIENT) => (params: import("@hylid/types/lib/custom/appLink").AppLinkParams) => string;
4
+ export declare const getCallAppLinkCreator: (clientName: string) => (params: import("@hylid/types/lib/custom/appLink").AppLinkParams) => string;
6
5
  export declare const getAppScanLink: HyCustomJSAPI['getAppScanLink'];
7
- export declare const getAppScanLinkCreator: (clientName: keyof typeof CLIENT) => (params: import("@hylid/types/lib/custom/appLink").AppLinkParams) => string;
6
+ export declare const getAppScanLinkCreator: (clientName: string) => (params: import("@hylid/types/lib/custom/appLink").AppLinkParams) => string;
8
7
  export declare const getGeneralAppInfo: GetGeneralAppInfo;
9
- export declare const getGeneralAppInfoCreator: (clientName: keyof typeof CLIENT) => GetGeneralAppInfo;
8
+ export declare const getGeneralAppInfoCreator: (clientName: string) => GetGeneralAppInfo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hylid/custom-jsapi",
3
- "version": "4.0.0-alpha.4",
3
+ "version": "4.0.0-alpha.5",
4
4
  "main": "lib/index.js",
5
5
  "files": [
6
6
  "lib"
@@ -9,9 +9,9 @@
9
9
  "access": "public"
10
10
  },
11
11
  "dependencies": {
12
- "@hylid/call": "^4.0.0-alpha.4",
13
- "@hylid/env": "^4.0.0-alpha.4",
14
- "@hylid/types": "^4.0.0-alpha.4",
12
+ "@hylid/call": "^4.0.0-alpha.5",
13
+ "@hylid/env": "^4.0.0-alpha.5",
14
+ "@hylid/types": "^4.0.0-alpha.5",
15
15
  "qs-es5": "^6.8.4"
16
16
  },
17
17
  "license": "MIT",