vona-module-a-startup 5.0.26 → 5.0.28

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,8 +1,5 @@
1
- import type { FunctionAsync } from 'vona';
2
- import type { IRedlockLockIsolateOptions } from 'vona-module-a-redlock';
3
1
  import { BeanRedlockBase } from 'vona-module-a-redlock';
4
- export interface MetaRedlock {
5
- lockIsolate<RESULT, KEY extends string>(resource: `startup.${KEY}`, fn: FunctionAsync<RESULT>, options?: IRedlockLockIsolateOptions): Promise<RESULT>;
6
- }
7
- export declare class MetaRedlock extends BeanRedlockBase {
2
+ export type TypeRedlockLockResource = never;
3
+ export type TypeRedlockLockIsolateResource = `startup.${string}`;
4
+ export declare class MetaRedlock extends BeanRedlockBase<TypeRedlockLockResource, TypeRedlockLockIsolateResource> {
8
5
  }
@@ -1,12 +1,12 @@
1
1
  import type { OmitNever } from 'vona';
2
2
  import type { ConfigInstanceBase } from 'vona-module-a-instance';
3
- import type { IOnionOptionsDeps, IOnionOptionsEnable, ServiceOnion } from 'vona-module-a-onion';
3
+ import type { IOnionOptionsDeps, ServiceOnion, TypeOnionOptionsEnableSimple } from 'vona-module-a-onion';
4
4
  export interface IStartupRecord {
5
5
  }
6
6
  export interface IStartupExecute {
7
7
  execute: (options?: IInstanceStartupOptions) => Promise<void>;
8
8
  }
9
- export interface IDecoratorStartupOptions extends IOnionOptionsEnable, IOnionOptionsDeps<keyof IStartupRecord> {
9
+ export interface IDecoratorStartupOptions extends TypeOnionOptionsEnableSimple, IOnionOptionsDeps<keyof IStartupRecord> {
10
10
  instance?: boolean;
11
11
  debounce?: boolean | number;
12
12
  transaction?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vona-module-a-startup",
3
3
  "type": "module",
4
- "version": "5.0.26",
4
+ "version": "5.0.28",
5
5
  "title": "a-startup",
6
6
  "vonaModule": {
7
7
  "dependencies": {},