@dxtmisha/functional-basic 1.10.1 → 1.11.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/dist/library.d.ts CHANGED
@@ -3047,7 +3047,7 @@ export declare function ensureMaxSize(file: Uint8Array, compress?: number, type?
3047
3047
  */
3048
3048
  export declare class ErrorCenter {
3049
3049
  /** Instance of the error center / Экземпляр центра ошибок */
3050
- protected static item: ErrorCenterInstance;
3050
+ protected static item?: ErrorCenterInstance;
3051
3051
  /**
3052
3052
  * Returns a request-isolated instance of ErrorCenterInstance.
3053
3053
  *
@@ -4101,6 +4101,12 @@ export declare type FunctionAnyType<T = any, R = any> = (...args: T[]) => R;
4101
4101
  */
4102
4102
  export declare type FunctionArgs<T, R> = (...args: T[]) => R;
4103
4103
 
4104
+ /**
4105
+ * Generic type that can be either a direct value or a function returning that value/
4106
+ * Дженерик тип для прямого значения или функции, возвращающей это значение
4107
+ */
4108
+ export declare type FunctionOr<T = any> = T | FunctionReturn<T>;
4109
+
4104
4110
  /**
4105
4111
  * Function type that returns a value of type R/
4106
4112
  * Тип функции, возвращающей значение типа R