@ibiz-template/core 0.1.6 → 0.1.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.
@@ -0,0 +1,32 @@
1
+ /**
2
+ * 多语言接口
3
+ *
4
+ * @author chitanda
5
+ * @date 2023-08-11 16:08:21
6
+ * @export
7
+ * @interface I18n
8
+ */
9
+ export interface I18n {
10
+ /**
11
+ * 消息格式化
12
+ *
13
+ * @author chitanda
14
+ * @date 2023-08-11 16:08:40
15
+ * @param {string} tag
16
+ * @param {IParams} [options]
17
+ * @return {*} {string}
18
+ */
19
+ t(tag: string, options?: IParams): string;
20
+ /**
21
+ * 消息格式化
22
+ *
23
+ * @author chitanda
24
+ * @date 2023-08-11 16:08:42
25
+ * @param {string} tag
26
+ * @param {string} [defaultMsg]
27
+ * @param {IParams} [options]
28
+ * @return {*} {string}
29
+ */
30
+ t(tag: string, defaultMsg?: string, options?: IParams): string;
31
+ }
32
+ //# sourceMappingURL=i-18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-18n.d.ts","sourceRoot":"","sources":["../../../src/interface/i-18n/i-18n.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,WAAW,IAAI;IACnB;;;;;;;;OAQG;IACH,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAE1C;;;;;;;;;OASG;IACH,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAChE"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,5 @@
1
- export { IEnvironment } from './i-environment/i-environment';
2
- export { OrgData } from './org-data/org-data';
3
1
  export * from './click-outside/click-outside';
2
+ export type { I18n } from './i-18n/i-18n';
3
+ export type { IEnvironment } from './i-environment/i-environment';
4
+ export type { OrgData } from './org-data/org-data';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,cAAc,+BAA+B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interface/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,YAAY,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC1C,YAAY,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClE,YAAY,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/core",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "核心包",
5
5
  "type": "module",
6
6
  "main": "out/index.js",
@@ -49,5 +49,5 @@
49
49
  "qx-util": "^0.4.8",
50
50
  "ramda": "^0.29.0"
51
51
  },
52
- "gitHead": "b140871c2a8700d063b3a6380f0eef5c02768822"
52
+ "gitHead": "5e283e6c4cfad7a27402a60f96d4f628bf1dbb1a"
53
53
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * 多语言接口
3
+ *
4
+ * @author chitanda
5
+ * @date 2023-08-11 16:08:21
6
+ * @export
7
+ * @interface I18n
8
+ */
9
+ export interface I18n {
10
+ /**
11
+ * 消息格式化
12
+ *
13
+ * @author chitanda
14
+ * @date 2023-08-11 16:08:40
15
+ * @param {string} tag
16
+ * @param {IParams} [options]
17
+ * @return {*} {string}
18
+ */
19
+ t(tag: string, options?: IParams): string;
20
+
21
+ /**
22
+ * 消息格式化
23
+ *
24
+ * @author chitanda
25
+ * @date 2023-08-11 16:08:42
26
+ * @param {string} tag
27
+ * @param {string} [defaultMsg]
28
+ * @param {IParams} [options]
29
+ * @return {*} {string}
30
+ */
31
+ t(tag: string, defaultMsg?: string, options?: IParams): string;
32
+ }
@@ -1,3 +1,4 @@
1
- export { IEnvironment } from './i-environment/i-environment';
2
- export { OrgData } from './org-data/org-data';
3
1
  export * from './click-outside/click-outside';
2
+ export type { I18n } from './i-18n/i-18n';
3
+ export type { IEnvironment } from './i-environment/i-environment';
4
+ export type { OrgData } from './org-data/org-data';