@noah-libjs/utils 0.0.9 → 0.0.23

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": "@noah-libjs/utils",
3
- "version": "0.0.9",
3
+ "version": "0.0.23",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -34,5 +34,5 @@
34
34
  "keywords": [],
35
35
  "author": "",
36
36
  "license": "MIT",
37
- "gitHead": "bb49d078600e65d77b842887c63be3b254faf999"
37
+ "gitHead": "c8ac6f11df2df5f1995b337ef1a1cb11fc203bef"
38
38
  }
package/dist/Event.d.ts DELETED
@@ -1,27 +0,0 @@
1
- import { MyLog } from "./log";
2
- export declare class EventEmitter<TypeMapInterface extends {
3
- [x: string]: any[];
4
- }> {
5
- events: {
6
- [x in keyof TypeMapInterface]?: Array<(...args: TypeMapInterface[x]) => void>;
7
- };
8
- constructor();
9
- addListener<T extends keyof TypeMapInterface>(event: T, listener: (...args: TypeMapInterface[T]) => void): this;
10
- on<T extends keyof TypeMapInterface>(event: T, listener: (...args: TypeMapInterface[T]) => void): this;
11
- on_cb<T extends keyof TypeMapInterface>(event: T, listener: (...args: TypeMapInterface[T]) => void): (...args: TypeMapInterface[T]) => void;
12
- on_rm<T extends keyof TypeMapInterface>(event: T, listener: (...args: TypeMapInterface[T]) => void): () => void;
13
- static logger: MyLog;
14
- emit<T extends keyof TypeMapInterface>(event: T, ...args: TypeMapInterface[T]): boolean;
15
- removeAllListeners<T extends keyof TypeMapInterface>(event: T): this;
16
- off<T extends keyof TypeMapInterface>(event: T, listener: (...args: TypeMapInterface[T]) => void): this;
17
- once<T extends keyof TypeMapInterface>(event: T, listener: (...args: TypeMapInterface[T]) => void): this;
18
- prependListener<T extends keyof TypeMapInterface>(event: keyof TypeMapInterface, listener: (...args: any[]) => void): this;
19
- prependOnceListener<T extends keyof TypeMapInterface>(event: keyof TypeMapInterface, listener: (...args: any[]) => void): this;
20
- removeListener<T extends keyof TypeMapInterface>(event: keyof TypeMapInterface, listener: (...args: any[]) => void): this;
21
- setMaxListeners(n: number): this;
22
- getMaxListeners(): number;
23
- listeners<T extends keyof TypeMapInterface>(event: keyof TypeMapInterface): Function[];
24
- rawListeners<T extends keyof TypeMapInterface>(event: keyof TypeMapInterface): Function[];
25
- eventNames(): Array<keyof TypeMapInterface>;
26
- listenerCount(type: string): number;
27
- }
@@ -1,17 +0,0 @@
1
- export declare const EMPTY_PLACEHOLDER = "-";
2
- export declare const TOKEN_KEY = "\u03A3(\u3063 \u00B0\u0414 \u00B0;)\u3063";
3
- export declare const ARG_URS1_KEY = "usr1";
4
- export declare const ARG_URS2_KEY = "usr2";
5
- export declare const noop: () => void;
6
- export declare const ROMAN_NUMERALS: {
7
- 1: string;
8
- 2: string;
9
- 3: string;
10
- 4: string;
11
- 5: string;
12
- 6: string;
13
- 7: string;
14
- 8: string;
15
- 9: string;
16
- 10: string;
17
- };
@@ -1,37 +0,0 @@
1
- import { AnyObject } from "./type-utils";
2
- interface IDictionary {
3
- id: number;
4
- module: string;
5
- type: number;
6
- key: string;
7
- name: string;
8
- note: string;
9
- enumerations: Partial<IEnumeration>[];
10
- }
11
- interface IEnumeration {
12
- id: number;
13
- label: string;
14
- note: string;
15
- value: number;
16
- }
17
- export declare function getDictionaries(): AnyObject<IDictionary>;
18
- /**
19
- *
20
- * @param value 枚举值value
21
- * @param type string 字典类型
22
- */
23
- export declare function getDictionariesEnumerations(type: string): Partial<IEnumeration>[];
24
- /**
25
- *
26
- * @param value 枚举值value
27
- * @param type string 字典类型
28
- */
29
- export declare function getDictionaryLabel(type: string, value: string | number): string | null | undefined;
30
- /**
31
- *
32
- * @param label 枚举值value
33
- * @param type string 字典类型
34
- */
35
- export declare function getDictionaryValue(type: string, label: string): number | null | undefined;
36
- export declare function merge_dict(ops: AnyObject<IDictionary>): void;
37
- export {};