@qiwi/substrate-types
Advanced tools
Comparing version 1.55.0 to 1.55.1
{ | ||
"git": { | ||
"commitId": "303ef049e5f8f0493ee8bf343abc7a74a270a9c9", | ||
"repoUrl": "https://github.com/qiwi/substrate", | ||
"commitId": "60895c5b274dfae2ac20abf5d2fa6dc1f4b84c60", | ||
"repoUrl": "https://github.com/qiwi/substrate.git", | ||
"repoName": "qiwi/substrate" | ||
}, | ||
"date": "2022-09-12T14:39:02.698Z" | ||
"date": "2022-11-29T13:46:32.667Z" | ||
} |
@@ -0,1 +1,16 @@ | ||
## @qiwi/substrate-types [1.55.1](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.55.0...@qiwi/substrate-types@1.55.1) (2022-11-29) | ||
### Performance Improvements | ||
* update deps, fix pkg sources ref ([60895c5](https://github.com/qiwi/substrate/commit/60895c5b274dfae2ac20abf5d2fa6dc1f4b84c60)) | ||
### Dependencies | ||
* **@qiwi/substrate-infra:** upgraded to 1.2.3 | ||
# @qiwi/substrate-types [1.55.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.54.0...@qiwi/substrate-types@1.55.0) (2022-09-12) | ||
@@ -2,0 +17,0 @@ |
{ | ||
"name": "@qiwi/substrate-types", | ||
"version": "1.55.0", | ||
"version": "1.55.1", | ||
"main": "target/es5/index.js", | ||
"source": "target/ts/index.ts", | ||
"types": "target/es5/index.d.ts", | ||
@@ -29,3 +28,3 @@ "typescript": { | ||
"dtslint": "yarn dtslint src/test/ts/libdef --localTs ../../node_modules/typescript/lib --expectOnly", | ||
"aliasgen": "node -r @qiwi/esm ../../scripts/js/alias-gen.js", | ||
"aliasgen": "node ../../scripts/js/alias-gen.js", | ||
"docs": "typedoc" | ||
@@ -42,12 +41,12 @@ }, | ||
"devDependencies": { | ||
"@qiwi/substrate-infra": "1.2.2", | ||
"@qiwi/substrate-infra": "1.2.3", | ||
"@qiwi/uniconfig": "3.5.11", | ||
"@types/bluebird": "3.5.36", | ||
"@types/bluebird": "3.5.38", | ||
"@types/config": "3.3.0", | ||
"@types/jest": "29.0.1", | ||
"@types/lodash": "4.14.185", | ||
"@types/node": "18.7.16", | ||
"@types/jest": "29.2.3", | ||
"@types/lodash": "4.14.190", | ||
"@types/node": "18.11.9", | ||
"@types/parsimmon": "1.10.6", | ||
"@types/underscore": "1.11.4", | ||
"axios": "0.27.2", | ||
"axios": "1.2.0", | ||
"bluebird": "3.7.2", | ||
@@ -59,3 +58,3 @@ "conf": "10.2.0", | ||
"reflect-metadata": "0.1.13", | ||
"underscore": "1.13.4" | ||
"underscore": "1.13.6" | ||
}, | ||
@@ -62,0 +61,0 @@ "license": "MIT", |
import { IExtra } from './IExtra'; | ||
import { IStorage } from './IStorage'; | ||
export declare type IStoreExtra = IExtra<'store', IStorage>; | ||
export declare type IStorageExtra = IExtra<'storage', IStorage>; | ||
export type IStoreExtra = IExtra<'store', IStorage>; | ||
export type IStorageExtra = IExtra<'storage', IStorage>; |
@@ -1,15 +0,15 @@ | ||
export declare type UnionToIntersection<U, K = any> = (U extends K ? (k: U) => void : never) extends (k: infer I) => void ? I : never; | ||
export type UnionToIntersection<U, K = any> = (U extends K ? (k: U) => void : never) extends (k: infer I) => void ? I : never; | ||
export declare function mkenum<T extends { | ||
[index: string]: U; | ||
}, U extends string>(x: T): T; | ||
export declare type EnumType<T> = T[keyof T]; | ||
export declare type PrependTuple<A, T extends Array<any>> = ((a: A, ...b: T) => void) extends (...a: infer I) => void ? I : []; | ||
export declare type Extends<T, E, R1, R2> = T extends E ? R1 : R2; | ||
export declare type ExtendsOrNever<T, E> = Extends<T, E, T, never>; | ||
export declare type RecursivePartial<T> = { | ||
export type EnumType<T> = T[keyof T]; | ||
export type PrependTuple<A, T extends Array<any>> = ((a: A, ...b: T) => void) extends (...a: infer I) => void ? I : []; | ||
export type Extends<T, E, R1, R2> = T extends E ? R1 : R2; | ||
export type ExtendsOrNever<T, E> = Extends<T, E, T, never>; | ||
export type RecursivePartial<T> = { | ||
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P]; | ||
}; | ||
export declare type Prev<T extends number> = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62][T]; | ||
export declare type GetLength<original extends any[]> = original extends { | ||
export type Prev<T extends number> = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62][T]; | ||
export type GetLength<original extends any[]> = original extends { | ||
length: infer L; | ||
} ? L : never; |
@@ -1,4 +0,4 @@ | ||
export declare type IAnyMap = { | ||
export type IAnyMap = { | ||
[key: string]: any; | ||
[key: number]: any; | ||
}; |
@@ -11,3 +11,3 @@ import { RecursivePartial } from './helpers'; | ||
} | ||
declare type TClientEventMeta = RecursivePartial<{ | ||
type TClientEventMeta = RecursivePartial<{ | ||
appName: string; | ||
@@ -22,3 +22,3 @@ appHost: string; | ||
}>; | ||
export declare type IClientEventMeta = TClientEventMeta; | ||
export type IClientEventMeta = TClientEventMeta; | ||
export interface IClientEventDto { | ||
@@ -25,0 +25,0 @@ message: string; |
@@ -1,2 +0,2 @@ | ||
export declare type ICollectionItem = any; | ||
export type ICollectionItem = any; | ||
export interface ICollection<T> { | ||
@@ -3,0 +3,0 @@ get: (index: number | string) => T | undefined; |
@@ -1,2 +0,2 @@ | ||
export declare type TConfigKey = string; | ||
export type TConfigKey = string; | ||
export interface IConfig<T = any> { | ||
@@ -3,0 +3,0 @@ set?: (key: TConfigKey, value: T) => void; |
@@ -1,6 +0,6 @@ | ||
export declare type Abstract<T = object> = Function & { | ||
export type Abstract<T = object> = Function & { | ||
prototype: T; | ||
}; | ||
export declare type IConstructor<T = object, A extends any[] = any[]> = new (...args: A) => T; | ||
export declare type IClass<T = object> = Abstract<T> & IConstructor<T>; | ||
export declare type IConstructable<T = object, A extends any[] = any[]> = IConstructor<T, A>; | ||
export type IConstructor<T = object, A extends any[] = any[]> = new (...args: A) => T; | ||
export type IClass<T = object> = Abstract<T> & IConstructor<T>; | ||
export type IConstructable<T = object, A extends any[] = any[]> = IConstructor<T, A>; |
@@ -1,1 +0,1 @@ | ||
export declare type ICurrency = string; | ||
export type ICurrency = string; |
import { RecursivePartial } from './helpers'; | ||
export declare type IBrowserInfo = RecursivePartial<{ | ||
export type IBrowserInfo = RecursivePartial<{ | ||
name: string | null; | ||
@@ -7,3 +7,3 @@ version: string | null; | ||
}>; | ||
export declare type IOperationalSystemInfo = RecursivePartial<{ | ||
export type IOperationalSystemInfo = RecursivePartial<{ | ||
name: string | null; | ||
@@ -14,3 +14,3 @@ architecture: number | null; | ||
}>; | ||
export declare type IDeviceInfoStrict = RecursivePartial<{ | ||
export type IDeviceInfoStrict = RecursivePartial<{ | ||
browser: IBrowserInfo; | ||
@@ -24,2 +24,2 @@ model: { | ||
}>; | ||
export declare type IDeviceInfo = IDeviceInfoStrict | Record<string, any>; | ||
export type IDeviceInfo = IDeviceInfoStrict | Record<string, any>; |
@@ -1,3 +0,3 @@ | ||
export declare type IEventListener = (...args: any[]) => void; | ||
export declare type IEmitterMethod = (type: string, listener: IEventListener) => void; | ||
export type IEventListener = (...args: any[]) => void; | ||
export type IEmitterMethod = (type: string, listener: IEventListener) => void; | ||
export interface IEventEmitter { | ||
@@ -4,0 +4,0 @@ emit(type: string, ...args: any[]): void; |
@@ -1,3 +0,3 @@ | ||
export declare type IExtra<K extends string, V> = { | ||
export type IExtra<K extends string, V> = { | ||
[key in K]: V; | ||
}; |
@@ -1,5 +0,5 @@ | ||
export declare type IFunction<A extends any[] = any[], R = any> = (...args: A) => R; | ||
export declare type IFn<A extends any[] = any[], R = any> = IFunction<A, R>; | ||
export declare type ICallable<A extends any[] = any[], R = any> = IFunction<A, R>; | ||
export declare type IUnaryFunction<A = any, R = any> = (a: A) => R; | ||
export declare type IUnaryFn<A = any, R = any> = IUnaryFunction<A, R>; | ||
export type IFunction<A extends any[] = any[], R = any> = (...args: A) => R; | ||
export type IFn<A extends any[] = any[], R = any> = IFunction<A, R>; | ||
export type ICallable<A extends any[] = any[], R = any> = IFunction<A, R>; | ||
export type IUnaryFunction<A = any, R = any> = (a: A) => R; | ||
export type IUnaryFn<A = any, R = any> = IUnaryFunction<A, R>; |
@@ -11,3 +11,3 @@ import { IPromise } from './IPromise'; | ||
} | ||
export declare type IHttpHeaders = Record<string, any>; | ||
export type IHttpHeaders = Record<string, any>; | ||
export interface IHttpResponse<D = any> { | ||
@@ -52,2 +52,2 @@ status: number; | ||
} | ||
export declare type IHttpRequestProvider = IFetch | IHttpClient; | ||
export type IHttpRequestProvider = IFetch | IHttpClient; |
@@ -1,2 +0,2 @@ | ||
export declare type ILoggerMethod = (...args: any[]) => void; | ||
export type ILoggerMethod = (...args: any[]) => void; | ||
export declare enum LogLevel { | ||
@@ -3,0 +3,0 @@ ERROR = "error", |
@@ -21,3 +21,3 @@ export interface IRequest { | ||
} | ||
export declare type IMiddleware = IRequestMiddleware | IErrorMiddleware; | ||
export type IMiddleware = IRequestMiddleware | IErrorMiddleware; | ||
export interface IAsyncRequestMiddleware { | ||
@@ -29,2 +29,2 @@ (req: IRequest, res: IResponse, next?: INext): Promise<void>; | ||
} | ||
export declare type IAsyncMiddleware = IAsyncRequestMiddleware | IAsyncErrorMiddleware; | ||
export type IAsyncMiddleware = IAsyncRequestMiddleware | IAsyncErrorMiddleware; |
import { ICurrency } from './ICurrency'; | ||
export declare type IValue = number; | ||
export type IValue = number; | ||
export interface IMoney { | ||
@@ -4,0 +4,0 @@ value: IValue; |
@@ -1,4 +0,4 @@ | ||
export declare type INil = null | undefined; | ||
export declare type INullOrUndefined = INil; | ||
export declare type INullable<T = any> = T | null; | ||
export declare type INilable<T = any> = T | INil; | ||
export type INil = null | undefined; | ||
export type INullOrUndefined = INil; | ||
export type INullable<T = any> = T | null; | ||
export type INilable<T = any> = T | INil; |
@@ -6,15 +6,15 @@ import { UnionToIntersection } from './helpers'; | ||
} | ||
export declare type IWrappedValue<V = any, W = Object> = (W extends object[] ? UnionToIntersection<W[number]> : W extends object ? W : object) & { | ||
export type IWrappedValue<V = any, W = Object> = (W extends object[] ? UnionToIntersection<W[number]> : W extends object ? W : object) & { | ||
value: V; | ||
}; | ||
export declare type ITyped<T = any> = { | ||
export type ITyped<T = any> = { | ||
type: T; | ||
}; | ||
export declare type ITypedValue<V = any, T = any> = IWrappedValue<V, ITyped<T>>; | ||
export declare type IMeted<M extends IAnyMap = IAnyMap> = { | ||
export type ITypedValue<V = any, T = any> = IWrappedValue<V, ITyped<T>>; | ||
export type IMeted<M extends IAnyMap = IAnyMap> = { | ||
meta: M; | ||
}; | ||
export declare type IMetedValue<V = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMeted<M>>; | ||
export declare type IMetaTyped<T = any, M extends IAnyMap = IAnyMap> = ITyped<T> & IMeted<M>; | ||
export declare type IMetaTypedValue<V = any, T = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMetaTyped<T, M>>; | ||
export declare type INormalValue<V = any, T = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, [IMetaTyped<T, M>, IIdentified]>; | ||
export type IMetedValue<V = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMeted<M>>; | ||
export type IMetaTyped<T = any, M extends IAnyMap = IAnyMap> = ITyped<T> & IMeted<M>; | ||
export type IMetaTypedValue<V = any, T = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMetaTyped<T, M>>; | ||
export type INormalValue<V = any, T = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, [IMetaTyped<T, M>, IIdentified]>; |
import { IUnaryFn } from './IFunction'; | ||
import { INormalValue } from './INormalValue'; | ||
export declare type IPipe<E = any> = IUnaryFn<E, E>; | ||
export declare type IPipeline<P extends IPipe = IPipe> = Array<P>; | ||
export declare type INormalPipe<E extends INormalValue = INormalValue> = IPipe<E>; | ||
export declare type INormalPipeline<P extends INormalPipe = INormalPipe> = IPipeline<P>; | ||
export type IPipe<E = any> = IUnaryFn<E, E>; | ||
export type IPipeline<P extends IPipe = IPipe> = Array<P>; | ||
export type INormalPipe<E extends INormalValue = INormalValue> = IPipe<E>; | ||
export type INormalPipeline<P extends INormalPipe = INormalPipe> = IPipeline<P>; |
import { IConstructor } from './IConstructor'; | ||
export declare type TPromiseExecutor<TValue = any, TReason = any> = (resolve: (value: TValue) => void, reject: (reason: TReason) => void) => void; | ||
export type TPromiseExecutor<TValue = any, TReason = any> = (resolve: (value: TValue) => void, reject: (reason: TReason) => void) => void; | ||
export interface IPromise<TValue = any, TReason = any> { | ||
@@ -4,0 +4,0 @@ then: (onSuccess?: (value: TValue) => any, onReject?: (reason: TReason) => any) => IPromise; |
import { ICollection } from './ICollection'; | ||
export declare type IStackItem = any; | ||
export type IStackItem = any; | ||
export interface IStack<T> extends ICollection<T> { | ||
@@ -4,0 +4,0 @@ push: (...items: Array<T>) => T; |
@@ -1,4 +0,4 @@ | ||
export declare type TStorageKey = string; | ||
export declare type TStorageValue = any; | ||
export declare type TStorageTTL = number; | ||
export type TStorageKey = string; | ||
export type TStorageValue = any; | ||
export type TStorageTTL = number; | ||
export interface IStorage { | ||
@@ -5,0 +5,0 @@ get: (key: TStorageKey) => TStorageValue; |
@@ -1,3 +0,3 @@ | ||
export declare type IStringMap = { | ||
export type IStringMap = { | ||
[key: string]: string; | ||
}; |
@@ -1,3 +0,3 @@ | ||
export declare type TUtilEachCollection = any[] | object; | ||
export declare type TUtilEachHandler = (value: any, key?: string | number, collection?: TUtilEachCollection) => void; | ||
export declare type TUtilEach = (collection: TUtilEachCollection, handler: TUtilEachHandler) => TUtilEachCollection; | ||
export type TUtilEachCollection = any[] | object; | ||
export type TUtilEachHandler = (value: any, key?: string | number, collection?: TUtilEachCollection) => void; | ||
export type TUtilEach = (collection: TUtilEachCollection, handler: TUtilEachHandler) => TUtilEachCollection; |
@@ -1,5 +0,5 @@ | ||
export declare type TUtilGetPath = Array<string | number> | string; | ||
export declare type TUtilGetObject = object; | ||
export declare type TUtilGetDefaultValue = any; | ||
export declare type TUtilGetResponse = any; | ||
export declare type TUtilGet = (obj: TUtilGetObject, path: TUtilGetPath, defaultValue?: TUtilGetDefaultValue) => TUtilGetResponse; | ||
export type TUtilGetPath = Array<string | number> | string; | ||
export type TUtilGetObject = object; | ||
export type TUtilGetDefaultValue = any; | ||
export type TUtilGetResponse = any; | ||
export type TUtilGet = (obj: TUtilGetObject, path: TUtilGetPath, defaultValue?: TUtilGetDefaultValue) => TUtilGetResponse; |
@@ -1,3 +0,3 @@ | ||
export declare type TUtilMapCollection = any[] | object; | ||
export declare type TUtilMapHandler = (value: any, key?: string | number, collection?: TUtilMapCollection) => any; | ||
export declare type TUtilMap = (collection: TUtilMapCollection, handler: TUtilMapHandler) => any[]; | ||
export type TUtilMapCollection = any[] | object; | ||
export type TUtilMapHandler = (value: any, key?: string | number, collection?: TUtilMapCollection) => any; | ||
export type TUtilMap = (collection: TUtilMapCollection, handler: TUtilMapHandler) => any[]; |
@@ -1,4 +0,4 @@ | ||
export declare type TUtilSetPath = Array<string | number> | string; | ||
export declare type TUtilSetObject = object; | ||
export declare type TUtilSetValue = any; | ||
export declare type TUtilSet = (obj: TUtilSetObject, path: TUtilSetPath, value: TUtilSetValue) => void; | ||
export type TUtilSetPath = Array<string | number> | string; | ||
export type TUtilSetObject = object; | ||
export type TUtilSetValue = any; | ||
export type TUtilSet = (obj: TUtilSetObject, path: TUtilSetPath, value: TUtilSetValue) => void; |
@@ -1,1 +0,1 @@ | ||
export declare type TPredicate = (...args: any[]) => boolean; | ||
export type TPredicate = (...args: any[]) => boolean; |
import { IExtra } from './IExtra'; | ||
import { IStorage } from './IStorage'; | ||
export declare type IStoreExtra = IExtra<'store', IStorage>; | ||
export declare type IStorageExtra = IExtra<'storage', IStorage>; | ||
export type IStoreExtra = IExtra<'store', IStorage>; | ||
export type IStorageExtra = IExtra<'storage', IStorage>; |
@@ -1,15 +0,15 @@ | ||
export declare type UnionToIntersection<U, K = any> = (U extends K ? (k: U) => void : never) extends (k: infer I) => void ? I : never; | ||
export type UnionToIntersection<U, K = any> = (U extends K ? (k: U) => void : never) extends (k: infer I) => void ? I : never; | ||
export declare function mkenum<T extends { | ||
[index: string]: U; | ||
}, U extends string>(x: T): T; | ||
export declare type EnumType<T> = T[keyof T]; | ||
export declare type PrependTuple<A, T extends Array<any>> = ((a: A, ...b: T) => void) extends (...a: infer I) => void ? I : []; | ||
export declare type Extends<T, E, R1, R2> = T extends E ? R1 : R2; | ||
export declare type ExtendsOrNever<T, E> = Extends<T, E, T, never>; | ||
export declare type RecursivePartial<T> = { | ||
export type EnumType<T> = T[keyof T]; | ||
export type PrependTuple<A, T extends Array<any>> = ((a: A, ...b: T) => void) extends (...a: infer I) => void ? I : []; | ||
export type Extends<T, E, R1, R2> = T extends E ? R1 : R2; | ||
export type ExtendsOrNever<T, E> = Extends<T, E, T, never>; | ||
export type RecursivePartial<T> = { | ||
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P]; | ||
}; | ||
export declare type Prev<T extends number> = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62][T]; | ||
export declare type GetLength<original extends any[]> = original extends { | ||
export type Prev<T extends number> = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62][T]; | ||
export type GetLength<original extends any[]> = original extends { | ||
length: infer L; | ||
} ? L : never; |
@@ -1,4 +0,4 @@ | ||
export declare type IAnyMap = { | ||
export type IAnyMap = { | ||
[key: string]: any; | ||
[key: number]: any; | ||
}; |
@@ -11,3 +11,3 @@ import { RecursivePartial } from './helpers'; | ||
} | ||
declare type TClientEventMeta = RecursivePartial<{ | ||
type TClientEventMeta = RecursivePartial<{ | ||
appName: string; | ||
@@ -22,3 +22,3 @@ appHost: string; | ||
}>; | ||
export declare type IClientEventMeta = TClientEventMeta; | ||
export type IClientEventMeta = TClientEventMeta; | ||
export interface IClientEventDto { | ||
@@ -25,0 +25,0 @@ message: string; |
@@ -1,2 +0,2 @@ | ||
export declare type ICollectionItem = any; | ||
export type ICollectionItem = any; | ||
export interface ICollection<T> { | ||
@@ -3,0 +3,0 @@ get: (index: number | string) => T | undefined; |
@@ -1,2 +0,2 @@ | ||
export declare type TConfigKey = string; | ||
export type TConfigKey = string; | ||
export interface IConfig<T = any> { | ||
@@ -3,0 +3,0 @@ set?: (key: TConfigKey, value: T) => void; |
@@ -1,6 +0,6 @@ | ||
export declare type Abstract<T = object> = Function & { | ||
export type Abstract<T = object> = Function & { | ||
prototype: T; | ||
}; | ||
export declare type IConstructor<T = object, A extends any[] = any[]> = new (...args: A) => T; | ||
export declare type IClass<T = object> = Abstract<T> & IConstructor<T>; | ||
export declare type IConstructable<T = object, A extends any[] = any[]> = IConstructor<T, A>; | ||
export type IConstructor<T = object, A extends any[] = any[]> = new (...args: A) => T; | ||
export type IClass<T = object> = Abstract<T> & IConstructor<T>; | ||
export type IConstructable<T = object, A extends any[] = any[]> = IConstructor<T, A>; |
@@ -1,1 +0,1 @@ | ||
export declare type ICurrency = string; | ||
export type ICurrency = string; |
import { RecursivePartial } from './helpers'; | ||
export declare type IBrowserInfo = RecursivePartial<{ | ||
export type IBrowserInfo = RecursivePartial<{ | ||
name: string | null; | ||
@@ -7,3 +7,3 @@ version: string | null; | ||
}>; | ||
export declare type IOperationalSystemInfo = RecursivePartial<{ | ||
export type IOperationalSystemInfo = RecursivePartial<{ | ||
name: string | null; | ||
@@ -14,3 +14,3 @@ architecture: number | null; | ||
}>; | ||
export declare type IDeviceInfoStrict = RecursivePartial<{ | ||
export type IDeviceInfoStrict = RecursivePartial<{ | ||
browser: IBrowserInfo; | ||
@@ -24,2 +24,2 @@ model: { | ||
}>; | ||
export declare type IDeviceInfo = IDeviceInfoStrict | Record<string, any>; | ||
export type IDeviceInfo = IDeviceInfoStrict | Record<string, any>; |
@@ -1,3 +0,3 @@ | ||
export declare type IEventListener = (...args: any[]) => void; | ||
export declare type IEmitterMethod = (type: string, listener: IEventListener) => void; | ||
export type IEventListener = (...args: any[]) => void; | ||
export type IEmitterMethod = (type: string, listener: IEventListener) => void; | ||
export interface IEventEmitter { | ||
@@ -4,0 +4,0 @@ emit(type: string, ...args: any[]): void; |
@@ -1,3 +0,3 @@ | ||
export declare type IExtra<K extends string, V> = { | ||
export type IExtra<K extends string, V> = { | ||
[key in K]: V; | ||
}; |
@@ -1,5 +0,5 @@ | ||
export declare type IFunction<A extends any[] = any[], R = any> = (...args: A) => R; | ||
export declare type IFn<A extends any[] = any[], R = any> = IFunction<A, R>; | ||
export declare type ICallable<A extends any[] = any[], R = any> = IFunction<A, R>; | ||
export declare type IUnaryFunction<A = any, R = any> = (a: A) => R; | ||
export declare type IUnaryFn<A = any, R = any> = IUnaryFunction<A, R>; | ||
export type IFunction<A extends any[] = any[], R = any> = (...args: A) => R; | ||
export type IFn<A extends any[] = any[], R = any> = IFunction<A, R>; | ||
export type ICallable<A extends any[] = any[], R = any> = IFunction<A, R>; | ||
export type IUnaryFunction<A = any, R = any> = (a: A) => R; | ||
export type IUnaryFn<A = any, R = any> = IUnaryFunction<A, R>; |
@@ -11,3 +11,3 @@ import { IPromise } from './IPromise'; | ||
} | ||
export declare type IHttpHeaders = Record<string, any>; | ||
export type IHttpHeaders = Record<string, any>; | ||
export interface IHttpResponse<D = any> { | ||
@@ -52,2 +52,2 @@ status: number; | ||
} | ||
export declare type IHttpRequestProvider = IFetch | IHttpClient; | ||
export type IHttpRequestProvider = IFetch | IHttpClient; |
@@ -1,2 +0,2 @@ | ||
export declare type ILoggerMethod = (...args: any[]) => void; | ||
export type ILoggerMethod = (...args: any[]) => void; | ||
export declare enum LogLevel { | ||
@@ -3,0 +3,0 @@ ERROR = "error", |
@@ -21,3 +21,3 @@ export interface IRequest { | ||
} | ||
export declare type IMiddleware = IRequestMiddleware | IErrorMiddleware; | ||
export type IMiddleware = IRequestMiddleware | IErrorMiddleware; | ||
export interface IAsyncRequestMiddleware { | ||
@@ -29,2 +29,2 @@ (req: IRequest, res: IResponse, next?: INext): Promise<void>; | ||
} | ||
export declare type IAsyncMiddleware = IAsyncRequestMiddleware | IAsyncErrorMiddleware; | ||
export type IAsyncMiddleware = IAsyncRequestMiddleware | IAsyncErrorMiddleware; |
import { ICurrency } from './ICurrency'; | ||
export declare type IValue = number; | ||
export type IValue = number; | ||
export interface IMoney { | ||
@@ -4,0 +4,0 @@ value: IValue; |
@@ -1,4 +0,4 @@ | ||
export declare type INil = null | undefined; | ||
export declare type INullOrUndefined = INil; | ||
export declare type INullable<T = any> = T | null; | ||
export declare type INilable<T = any> = T | INil; | ||
export type INil = null | undefined; | ||
export type INullOrUndefined = INil; | ||
export type INullable<T = any> = T | null; | ||
export type INilable<T = any> = T | INil; |
@@ -6,15 +6,15 @@ import { UnionToIntersection } from './helpers'; | ||
} | ||
export declare type IWrappedValue<V = any, W = Object> = (W extends object[] ? UnionToIntersection<W[number]> : W extends object ? W : object) & { | ||
export type IWrappedValue<V = any, W = Object> = (W extends object[] ? UnionToIntersection<W[number]> : W extends object ? W : object) & { | ||
value: V; | ||
}; | ||
export declare type ITyped<T = any> = { | ||
export type ITyped<T = any> = { | ||
type: T; | ||
}; | ||
export declare type ITypedValue<V = any, T = any> = IWrappedValue<V, ITyped<T>>; | ||
export declare type IMeted<M extends IAnyMap = IAnyMap> = { | ||
export type ITypedValue<V = any, T = any> = IWrappedValue<V, ITyped<T>>; | ||
export type IMeted<M extends IAnyMap = IAnyMap> = { | ||
meta: M; | ||
}; | ||
export declare type IMetedValue<V = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMeted<M>>; | ||
export declare type IMetaTyped<T = any, M extends IAnyMap = IAnyMap> = ITyped<T> & IMeted<M>; | ||
export declare type IMetaTypedValue<V = any, T = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMetaTyped<T, M>>; | ||
export declare type INormalValue<V = any, T = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, [IMetaTyped<T, M>, IIdentified]>; | ||
export type IMetedValue<V = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMeted<M>>; | ||
export type IMetaTyped<T = any, M extends IAnyMap = IAnyMap> = ITyped<T> & IMeted<M>; | ||
export type IMetaTypedValue<V = any, T = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMetaTyped<T, M>>; | ||
export type INormalValue<V = any, T = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, [IMetaTyped<T, M>, IIdentified]>; |
import { IUnaryFn } from './IFunction'; | ||
import { INormalValue } from './INormalValue'; | ||
export declare type IPipe<E = any> = IUnaryFn<E, E>; | ||
export declare type IPipeline<P extends IPipe = IPipe> = Array<P>; | ||
export declare type INormalPipe<E extends INormalValue = INormalValue> = IPipe<E>; | ||
export declare type INormalPipeline<P extends INormalPipe = INormalPipe> = IPipeline<P>; | ||
export type IPipe<E = any> = IUnaryFn<E, E>; | ||
export type IPipeline<P extends IPipe = IPipe> = Array<P>; | ||
export type INormalPipe<E extends INormalValue = INormalValue> = IPipe<E>; | ||
export type INormalPipeline<P extends INormalPipe = INormalPipe> = IPipeline<P>; |
import { IConstructor } from './IConstructor'; | ||
export declare type TPromiseExecutor<TValue = any, TReason = any> = (resolve: (value: TValue) => void, reject: (reason: TReason) => void) => void; | ||
export type TPromiseExecutor<TValue = any, TReason = any> = (resolve: (value: TValue) => void, reject: (reason: TReason) => void) => void; | ||
export interface IPromise<TValue = any, TReason = any> { | ||
@@ -4,0 +4,0 @@ then: (onSuccess?: (value: TValue) => any, onReject?: (reason: TReason) => any) => IPromise; |
import { ICollection } from './ICollection'; | ||
export declare type IStackItem = any; | ||
export type IStackItem = any; | ||
export interface IStack<T> extends ICollection<T> { | ||
@@ -4,0 +4,0 @@ push: (...items: Array<T>) => T; |
@@ -1,4 +0,4 @@ | ||
export declare type TStorageKey = string; | ||
export declare type TStorageValue = any; | ||
export declare type TStorageTTL = number; | ||
export type TStorageKey = string; | ||
export type TStorageValue = any; | ||
export type TStorageTTL = number; | ||
export interface IStorage { | ||
@@ -5,0 +5,0 @@ get: (key: TStorageKey) => TStorageValue; |
@@ -1,3 +0,3 @@ | ||
export declare type IStringMap = { | ||
export type IStringMap = { | ||
[key: string]: string; | ||
}; |
@@ -1,3 +0,3 @@ | ||
export declare type TUtilEachCollection = any[] | object; | ||
export declare type TUtilEachHandler = (value: any, key?: string | number, collection?: TUtilEachCollection) => void; | ||
export declare type TUtilEach = (collection: TUtilEachCollection, handler: TUtilEachHandler) => TUtilEachCollection; | ||
export type TUtilEachCollection = any[] | object; | ||
export type TUtilEachHandler = (value: any, key?: string | number, collection?: TUtilEachCollection) => void; | ||
export type TUtilEach = (collection: TUtilEachCollection, handler: TUtilEachHandler) => TUtilEachCollection; |
@@ -1,5 +0,5 @@ | ||
export declare type TUtilGetPath = Array<string | number> | string; | ||
export declare type TUtilGetObject = object; | ||
export declare type TUtilGetDefaultValue = any; | ||
export declare type TUtilGetResponse = any; | ||
export declare type TUtilGet = (obj: TUtilGetObject, path: TUtilGetPath, defaultValue?: TUtilGetDefaultValue) => TUtilGetResponse; | ||
export type TUtilGetPath = Array<string | number> | string; | ||
export type TUtilGetObject = object; | ||
export type TUtilGetDefaultValue = any; | ||
export type TUtilGetResponse = any; | ||
export type TUtilGet = (obj: TUtilGetObject, path: TUtilGetPath, defaultValue?: TUtilGetDefaultValue) => TUtilGetResponse; |
@@ -1,3 +0,3 @@ | ||
export declare type TUtilMapCollection = any[] | object; | ||
export declare type TUtilMapHandler = (value: any, key?: string | number, collection?: TUtilMapCollection) => any; | ||
export declare type TUtilMap = (collection: TUtilMapCollection, handler: TUtilMapHandler) => any[]; | ||
export type TUtilMapCollection = any[] | object; | ||
export type TUtilMapHandler = (value: any, key?: string | number, collection?: TUtilMapCollection) => any; | ||
export type TUtilMap = (collection: TUtilMapCollection, handler: TUtilMapHandler) => any[]; |
@@ -1,4 +0,4 @@ | ||
export declare type TUtilSetPath = Array<string | number> | string; | ||
export declare type TUtilSetObject = object; | ||
export declare type TUtilSetValue = any; | ||
export declare type TUtilSet = (obj: TUtilSetObject, path: TUtilSetPath, value: TUtilSetValue) => void; | ||
export type TUtilSetPath = Array<string | number> | string; | ||
export type TUtilSetObject = object; | ||
export type TUtilSetValue = any; | ||
export type TUtilSet = (obj: TUtilSetObject, path: TUtilSetPath, value: TUtilSetValue) => void; |
@@ -1,1 +0,1 @@ | ||
export declare type TPredicate = (...args: any[]) => boolean; | ||
export type TPredicate = (...args: any[]) => boolean; |
172544