lucid-package 0.0.50 → 0.0.51

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lucid-package",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,3 +1,4 @@
1
+ /** @ignore */
1
2
  declare namespace lucid {
2
3
  export function executeCommand(name: string, params: any): any;
3
4
  export function listen(msg: any): void;
@@ -5,6 +6,56 @@ declare namespace lucid {
5
6
  export function getVersion(): string;
6
7
  }
7
8
 
8
- declare namespace console {
9
- export function log(...args: any[]): void;
9
+ /** @ignore */
10
+ declare const console: Console;
11
+
12
+ // from lib.dom.d.ts
13
+ /** @ignore */
14
+ interface Console {
15
+ assert(condition?: boolean, ...data: any[]): void;
16
+ clear(): void;
17
+ count(label?: string): void;
18
+ countReset(label?: string): void;
19
+ debug(...data: any[]): void;
20
+ dir(item?: any, options?: any): void;
21
+ dirxml(...data: any[]): void;
22
+ error(...data: any[]): void;
23
+ group(...data: any[]): void;
24
+ groupCollapsed(...data: any[]): void;
25
+ groupEnd(): void;
26
+ info(...data: any[]): void;
27
+ log(...data: any[]): void;
28
+ table(tabularData?: any, properties?: string[]): void;
29
+ time(label?: string): void;
30
+ timeEnd(label?: string): void;
31
+ timeLog(label?: string, ...data: any[]): void;
32
+ timeStamp(label?: string): void;
33
+ trace(...data: any[]): void;
34
+ warn(...data: any[]): void;
35
+ }
36
+
37
+ declare class I18nSafeString {
38
+ public value: string;
39
+ constructor(str: string);
40
+ }
41
+
42
+ declare interface I18nFormattedNumberParams {
43
+ useGrouping?: boolean;
44
+ minimumIntegerDigits?: number;
45
+ minimumFractionDigits?: number;
46
+ maximumFractionDigits?: number;
47
+ }
48
+
49
+ declare class I18nFormattedNumber {}
50
+
51
+ declare interface I18nReplacement {
52
+ [s: string]: number | string | I18nSafeString | I18nFormattedNumber;
53
+ }
54
+
55
+ declare namespace i18n {
56
+ function setData(data: {[key: string]: string}, language: string): void;
57
+ function get(key: string, replacements?: I18nReplacement, wrappers?: string[], gender?: string): string;
58
+ function getLanguage(): string;
59
+ function getInLocale(locale: string, key: string, replacements?: I18nReplacement, wrappers?: string[]): string;
60
+ function formatNumber(value: number, params: I18nFormattedNumberParams): I18nFormattedNumber;
10
61
  }