@omnia/fx-models 8.0.243-dev → 8.0.245-dev

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.
@@ -4,7 +4,9 @@ export interface SetupFactoryContext {
4
4
  onDeactivated(fn: () => void): any;
5
5
  subscriptions: SubscriptionHandler;
6
6
  }
7
- export declare function defineFactory<InferReturnSetup>(setup: (ctx: SetupFactoryContext, ...args: any) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: guid): () => InferReturnSetup;
7
+ export declare function defineFactory<InferReturnSetup>(setup: (ctx: SetupFactoryContext, ...args: any) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: guid): () => InferReturnSetup & {
8
+ dispose?: () => void;
9
+ };
8
10
  export declare function defineFactory<InferReturnSetup, T1>(setup: (ctx: SetupFactoryContext, param1: T1) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: guid): (param1: T1) => InferReturnSetup;
9
11
  export declare function defineFactory<InferReturnSetup, T1, T2>(setup: (ctx: SetupFactoryContext, param1: T1, param2: T2) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: string): (param1: T1, param2: T2) => InferReturnSetup;
10
12
  export declare function defineFactory<InferReturnSetup, T1, T2, T3>(setup: (ctx: SetupFactoryContext, param1: T1, param2: T2, param3: T3) => InferReturnSetup, lifetime: InstanceLifetimes, typeIdentifier?: guid): (param1: T1, param2: T2, param3: T3) => InferReturnSetup;
@@ -24,4 +24,6 @@ export declare const activityService: () => {
24
24
  getTempFiles: (tempFilesId: TemporaryFileId, startPath: string[]) => Promise<string[]>;
25
25
  takeOwnership: (tempFilesId: TemporaryFileId, subPath: string[]) => Promise<void>;
26
26
  upload: (uniqueguid: TemporaryFileId, files: File[]) => Promise<TemporaryFileId>;
27
+ } & {
28
+ dispose?: () => void;
27
29
  };
@@ -12,4 +12,6 @@ export declare const activitySubscriptionService: () => {
12
12
  addFollowingSubscription: (actorToFollow: ActorId) => Promise<void>;
13
13
  isFollowingSubscription: (actorToFollow: ActorId) => Promise<boolean>;
14
14
  removeFollowingSubscription: (actorToFollow: ActorId) => Promise<SubscriptionId>;
15
+ } & {
16
+ dispose?: () => void;
15
17
  };
@@ -6,5 +6,7 @@ interface SetupServiceContext extends SetupFactoryContext {
6
6
  }
7
7
  export declare function defineService<TActions extends {
8
8
  [key: string]: Function;
9
- }, TArgs extends any[]>(setup: (ctx: SetupServiceContext) => TActions, lifeTime?: InstanceLifetimes): () => TActions;
9
+ }, TArgs extends any[]>(setup: (ctx: SetupServiceContext) => TActions, lifeTime?: InstanceLifetimes): () => TActions & {
10
+ dispose?: () => void;
11
+ };
10
12
  export {};
@@ -5,4 +5,6 @@ export declare const useRealtimeService: () => {
5
5
  send: <TRealtimeChannel extends RealtimeChannel, TRealtimeData extends RealtimeData<TRealtimeChannel, any>>(data: TRealtimeData, value: TRealtimeData["value"]) => void;
6
6
  getUsersInChannel: (channel: RealtimeChannel) => Future<Array<number>>;
7
7
  onMessage: <TRealtimeChannel_1 extends RealtimeChannel, TRealtimeData_1 extends RealtimeData<TRealtimeChannel_1, any>>(data: TRealtimeData_1, callback: (value: TRealtimeData_1["value"]) => void) => void;
8
+ } & {
9
+ dispose?: () => void;
8
10
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.243-dev",
4
+ "version": "8.0.245-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"