@cloudbase/types 2.20.4 → 2.20.7

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/index.d.ts +3 -1
  2. package/package.json +2 -2
package/index.d.ts CHANGED
@@ -54,7 +54,8 @@ export interface ICloudbase {
54
54
  localCache: ICloudbaseCache
55
55
  authInstance?: ICloudbaseAuth
56
56
  oauthInstance?: any
57
- init: (config: ICloudbaseConfig) => ICloudbase
57
+ apis: { [key: string]: any }
58
+ init: (config: ICloudbaseConfig & { lang?: LANGS }) => ICloudbase
58
59
  updateConfig: (config: ICloudbaseUpgradedConfig) => void
59
60
  registerExtension: (ext: ICloudbaseExtension) => void
60
61
  invokeExtension: (name: string, opts: any) => Promise<any>
@@ -63,6 +64,7 @@ export interface ICloudbase {
63
64
  registerHook: (hook: ICloudbaseHook) => void
64
65
  registerVersion: (version: string) => void
65
66
  fire?: (...args: any[]) => void
67
+ updateLang?: (lang: LANGS) => void
66
68
  }
67
69
  export interface ICloudbasePlatformInfo {
68
70
  adapter?: SDKAdapterInterface
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/types",
3
- "version": "2.20.4",
3
+ "version": "2.20.7",
4
4
  "description": "cloudbase javascript sdk types",
5
5
  "files": [
6
6
  "index.js",
@@ -43,5 +43,5 @@
43
43
  "lint": "eslint --fix \"./**/*.ts\"",
44
44
  "precommit": "npm run lint"
45
45
  },
46
- "gitHead": "bb754383b2342e0b30a3ebe4288e39dc2844a274"
46
+ "gitHead": "37f008f16b8a9e5094a75232b9b6337b80a061d7"
47
47
  }