urit-qf-ui 0.1.2 → 0.1.4

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.
@@ -1,5 +1,4 @@
1
1
  export interface QfInterface {
2
- StartQf(options: QfOptions): Promise<void>;
3
2
  On(event: string, callback: any): void;
4
3
  Emit(event: string, data: any): void;
5
4
  Off(event: string, callback: any): void;
package/dist/qf/qf.d.ts CHANGED
@@ -2,13 +2,17 @@ import { Http } from './http';
2
2
  import { QfInterface, QfOptions } from './interface';
3
3
  import { EventBus } from './event-bus';
4
4
  import { MqttAdapter } from './mqtt-adapter';
5
- export declare class Qf implements QfInterface {
5
+ export declare const GetQf: (options: QfOptions) => QfInterface;
6
+ export declare class QfImpl implements QfInterface {
6
7
  EventBus: EventBus;
7
8
  WebApi: Http;
8
9
  Mqtt: MqttAdapter;
9
10
  options: QfOptions;
10
- constructor();
11
- StartQf(options: QfOptions): Promise<void>;
11
+ constructor(options: QfOptions);
12
+ /**
13
+ * 初始化 Qf
14
+ */
15
+ initQf(options: QfOptions): void;
12
16
  On(event: string, callback: any): void;
13
17
  Emit(event: string, data: any): void;
14
18
  Off(event: string, callback: any): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "urit-qf-ui",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",