ng-mocks 14.10.0 → 14.10.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.
package/index.d.ts CHANGED
@@ -1003,7 +1003,7 @@ export declare function MockInstance<T extends object, K extends keyof T, S exte
1003
1003
  * MockInstance(webSocketToken, () => mockWebSocket);
1004
1004
  * ```
1005
1005
  */
1006
- export declare function MockInstance<T>(declaration: InjectionToken<T>, init?: (instance: T | undefined, injector: Injector | undefined) => Partial<T>): void;
1006
+ export declare function MockInstance<T>(declaration: InjectionToken<T>, init?: (instance: T | undefined, injector: Injector | undefined) => Partial<T> | Array<Partial<T>>): void;
1007
1007
  /**
1008
1008
  * This signature of MockInstance lets customize tokens with a callback.
1009
1009
  *
@@ -1017,7 +1017,7 @@ export declare function MockInstance<T>(declaration: InjectionToken<T>, init?: (
1017
1017
  * ```
1018
1018
  */
1019
1019
  export declare function MockInstance<T>(declaration: InjectionToken<T>, config?: {
1020
- init?: (instance: T | undefined, injector: Injector | undefined) => Partial<T>;
1020
+ init?: (instance: T | undefined, injector: Injector | undefined) => Partial<T> | Array<Partial<T>>;
1021
1021
  }): void;
1022
1022
  /**
1023
1023
  * This signature of MockInstance lets customize the instances of mock classes with a callback.
@@ -1037,7 +1037,7 @@ export declare function MockInstance<T>(declaration: InjectionToken<T>, config?:
1037
1037
  * });
1038
1038
  * ```
1039
1039
  */
1040
- export declare function MockInstance<T>(declaration: AnyType<T>, init?: (instance: T, injector: Injector | undefined) => void | Partial<T>): void;
1040
+ export declare function MockInstance<T>(declaration: AnyType<T>, init?: (instance: T, injector: Injector | undefined) => void | Partial<T> | Array<Partial<T>>): void;
1041
1041
  /**
1042
1042
  * This signature of MockInstance lets customize the instances of mock classes with a callback.
1043
1043
  * You can return a shape or change the instance.
@@ -1062,7 +1062,7 @@ export declare function MockInstance<T>(declaration: AnyType<T>, init?: (instanc
1062
1062
  * ```
1063
1063
  */
1064
1064
  export declare function MockInstance<T>(declaration: AnyType<T>, config?: {
1065
- init?: (instance: T, injector: Injector | undefined) => void | Partial<T>;
1065
+ init?: (instance: T, injector: Injector | undefined) => void | Partial<T> | Array<Partial<T>>;
1066
1066
  }): void;
1067
1067
  /**
1068
1068
  * Interface describes how to configure scopes for MockInstance.