@punica/form 1.1.0 → 1.1.1

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.
@@ -181,7 +181,7 @@ class FormController extends common_1.BaseListener {
181
181
  const serviceControl = service;
182
182
  __classPrivateFieldGet(this, _FormController_serviceMap, "f")[service.name] = service;
183
183
  if (serviceControl.initialize) {
184
- serviceControl.initialize(command);
184
+ await serviceControl.initialize(command);
185
185
  }
186
186
  }
187
187
  }
@@ -1,5 +1,5 @@
1
1
  import { FormItem, IReader, IService, IStarter } from '../..';
2
- export type Form<E, F extends FormItem<E> = any> = {
2
+ export type Form<E = any, F extends FormItem<E> = any> = {
3
3
  itemsMap: {
4
4
  [key in keyof E]: number;
5
5
  };
@@ -3,7 +3,7 @@ export interface IService {
3
3
  get name(): string;
4
4
  }
5
5
  export interface IServiceInitialize<E, F extends FormItem<E>> extends IService {
6
- initialize: (command: CommandService<E, F>) => void;
6
+ initialize: (command: CommandService<E, F>) => Promise<void>;
7
7
  }
8
8
  export interface IServiceControl<T = any> extends IService {
9
9
  run: (...args: any[]) => Promise<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punica/form",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Form",
5
5
  "author": {
6
6
  "name": "Uryan Sezgin TEKE",
@@ -36,5 +36,5 @@
36
36
  "@punica/common": "^1.0.1",
37
37
  "@punica/util": "^1.0.0"
38
38
  },
39
- "gitHead": "fc40f50115c22f2a4198437d47ec74ebe4d1e566"
39
+ "gitHead": "767aa46806a76af1f985c53f0d4a06e2b852fd0a"
40
40
  }