@cloudbase/js-sdk 2.20.4 → 2.20.6

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/index.d.ts CHANGED
@@ -3,6 +3,7 @@ import { ICloudbaseUpgradedConfig, ICloudbase, Persistence } from '@cloudbase/ty
3
3
  import { OrmClient, OrmRawQueryClient } from '@cloudbase/model';
4
4
  import { authModels } from '@cloudbase/oauth';
5
5
  import { AI } from '@cloudbase/ai';
6
+ import { LANGS } from '@cloudbase/types';
6
7
 
7
8
  type KV<T> = {
8
9
  [key: string]: T;
@@ -98,9 +99,11 @@ declare namespace cloudbase {
98
99
  *
99
100
  * @return {!cloudbase.app.App} 初始化成功的Cloudbase实例
100
101
  */
101
- function init(config: ICloudbaseConfig): cloudbase.app.App;
102
+ function init(config: ICloudbaseConfig & { lang: LANGS }): cloudbase.app.App;
102
103
 
103
104
  function updateConfig(config: ICloudbaseUpgradedConfig): void;
105
+
106
+ function updateLang(lang: LANGS): void;
104
107
  /**
105
108
  * 使用适配器,使用方式参考 {@link https://docs.cloudbase.net/api-reference/webv3/adapter#%E7%AC%AC-1-%E6%AD%A5%E5%AE%89%E8%A3%85%E5%B9%B6%E5%BC%95%E5%85%A5%E9%80%82%E9%85%8D%E5%99%A8}
106
109
  *