lucid-extension-sdk 0.0.105 → 0.0.106
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/interop.d.ts +26 -0
- package/package.json +1 -1
package/interop.d.ts
CHANGED
|
@@ -33,3 +33,29 @@ interface Console {
|
|
|
33
33
|
trace(...data: any[]): void;
|
|
34
34
|
warn(...data: any[]): void;
|
|
35
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;
|
|
61
|
+
}
|