@waline/client 2.1.2-test.0 → 2.3.0

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/dist/legacy.d.ts CHANGED
@@ -48,7 +48,15 @@ interface WalineDateLocale {
48
48
  days: string;
49
49
  now: string;
50
50
  }
51
- interface WalineLocale extends WalineDateLocale {
51
+ interface WalineLevelLocale {
52
+ level0: string;
53
+ level1: string;
54
+ level2: string;
55
+ level3: string;
56
+ level4: string;
57
+ level5: string;
58
+ }
59
+ interface WalineLocale extends WalineDateLocale, WalineLevelLocale {
52
60
  nick: string;
53
61
  nickError: string;
54
62
  mail: string;
@@ -317,7 +325,7 @@ interface WalineInstance {
317
325
  *
318
326
  * @description when not setting `path` option, it will be reset to `window.location.pathname`
319
327
  */
320
- update: (newOptions: Partial<Omit<WalineInitOptions, 'el'>>) => void;
328
+ update: (newOptions?: Partial<Omit<WalineInitOptions, 'el'>>) => void;
321
329
  /**
322
330
  * 取消挂载并摧毁 Waline 实例
323
331
  *