@qiwi/substrate-types
Advanced tools
Comparing version 1.53.0 to 1.53.1
{ | ||
"git": { | ||
"commitId": "498636878ccaf7d4e3444942e079e3f6117ec5ef", | ||
"repoUrl": "https://github.com/qiwi/substrate.git", | ||
"commitId": "88e3b0365d314b7773479d923f8170c8b09cd9ea", | ||
"repoUrl": "https://github.com/qiwi/substrate", | ||
"repoName": "qiwi/substrate" | ||
}, | ||
"date": "2021-11-11T16:43:58.186Z" | ||
"date": "2022-04-02T12:19:13.261Z" | ||
} |
@@ -0,1 +1,8 @@ | ||
## @qiwi/substrate-types [1.53.1](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.53.0...@qiwi/substrate-types@1.53.1) (2022-04-02) | ||
### Performance Improvements | ||
* up deps ([4f1e774](https://github.com/qiwi/substrate/commit/4f1e7740e22d6a0a7820f65c7a3a7897398a3d9c)) | ||
# @qiwi/substrate-types [1.53.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.52.2...@qiwi/substrate-types@1.53.0) (2021-11-11) | ||
@@ -2,0 +9,0 @@ |
/** | ||
* Flowtype definitions for index | ||
* Generated by Flowgen from a Typescript Definition | ||
* Flowgen v1.14.1 | ||
* Flowgen v1.17.0 | ||
*/ | ||
// see https://gist.github.com/thecotne/6e5969f4aaf8f253985ed36b30ac9fe0 | ||
type $FlowGen$If<X: boolean, Then, Else = empty> = $Call< | ||
((true, Then, Else) => Then) & ((false, Then, Else) => Else), | ||
X, | ||
Then, | ||
Else | ||
>; | ||
type $FlowGen$Assignable<A, B> = $Call< | ||
((...r: [B]) => true) & ((...r: [A]) => false), | ||
A | ||
>; | ||
declare module "@qiwi/substrate-types" { | ||
declare export * from "@qiwi/substrate-types/target/es5"; | ||
declare export * from "@qiwi/substrate-types/target/es6"; | ||
} | ||
@@ -290,6 +303,10 @@ | ||
declare module "@qiwi/substrate-types/target/es5/helpers" { | ||
declare export type UnionToIntersection< | ||
U, | ||
K = any | ||
> = /* Flow doesn't support conditional types, use `$Call` utility type */ any; | ||
declare export type UnionToIntersection<U, K = any> = $FlowGen$If< | ||
$FlowGen$Assignable< | ||
$FlowGen$If<$FlowGen$Assignable<U, K>, (k: U) => void, empty>, | ||
(k: I) => void | ||
>, | ||
I, | ||
empty | ||
>; | ||
declare export function mkenum< | ||
@@ -306,8 +323,12 @@ T: { | ||
declare export type EnumType<T> = $ElementType<T, $Keys<T>>; | ||
declare export type PrependTuple< | ||
A, | ||
T: Array<any> | ||
> = /* Flow doesn't support conditional types, use `$Call` utility type */ any; | ||
declare export type Extends<T, E, R1, R2> = | ||
/* Flow doesn't support conditional types, use `$Call` utility type */ any; | ||
declare export type PrependTuple<A, T: Array<any>> = $FlowGen$If< | ||
$FlowGen$Assignable<(a: A, ...b: T) => void, (...a: I) => void>, | ||
I, | ||
[] | ||
>; | ||
declare export type Extends<T, E, R1, R2> = $FlowGen$If< | ||
$FlowGen$Assignable<T, E>, | ||
R1, | ||
R2 | ||
>; | ||
declare export type ExtendsOrNever<T, E> = Extends<T, E, T, empty>; | ||
@@ -318,3 +339,11 @@ declare export type RecursivePartial<T> = $ObjMapi< | ||
P | ||
) => /* Flow doesn't support conditional types, use `$Call` utility type */ any | ||
) => $FlowGen$If< | ||
$FlowGen$Assignable<$ElementType<T, P>, U[]>, | ||
RecursivePartial<U>[], | ||
$FlowGen$If< | ||
$FlowGen$Assignable<$ElementType<T, P>, { [key: string]: any }>, | ||
RecursivePartial<$ElementType<T, P>>, | ||
$ElementType<T, P> | ||
> | ||
> | ||
>; | ||
@@ -390,4 +419,13 @@ declare export type Prev<T: number> = $ElementType< | ||
>; | ||
declare export type GetLength<original: any[]> = | ||
/* Flow doesn't support conditional types, use `$Call` utility type */ any; | ||
declare export type GetLength<original: any[]> = $FlowGen$If< | ||
$FlowGen$Assignable< | ||
original, | ||
{ | ||
length: L, | ||
... | ||
} | ||
>, | ||
L, | ||
empty | ||
>; | ||
} | ||
@@ -770,3 +808,3 @@ | ||
req?: Req | ||
): IPromise<{ ...Omit<Res, "json">, ...IFetchResponse<D> }>; | ||
): IPromise<{ ...$Diff<Res, { json: any }>, ...IFetchResponse<D> }>; | ||
} | ||
@@ -781,7 +819,7 @@ declare export interface IHttpReqPerform< | ||
req?: Req | ||
): IPromise<{ ...Omit<Res, "data">, ...IHttpResponse<D> }>; | ||
): IPromise<{ ...$Diff<Res, { data: any }>, ...IHttpResponse<D> }>; | ||
<D>( | ||
url: string, | ||
req?: Req | ||
): IPromise<{ ...Omit<Res, "data">, ...IHttpResponse<D> }>; | ||
): IPromise<{ ...$Diff<Res, { data: any }>, ...IHttpResponse<D> }>; | ||
} | ||
@@ -792,7 +830,9 @@ declare export interface IHttpClient< | ||
> { | ||
<D>(req: Req): IPromise<{ ...Omit<Res, "data">, ...IHttpResponse<D> }>; | ||
<D>( | ||
req: Req | ||
): IPromise<{ ...$Diff<Res, { data: any }>, ...IHttpResponse<D> }>; | ||
<D>( | ||
url: string, | ||
req?: Req | ||
): IPromise<{ ...Omit<Res, "data">, ...IHttpResponse<D> }>; | ||
): IPromise<{ ...$Diff<Res, { data: any }>, ...IHttpResponse<D> }>; | ||
get: IHttpReqPerform<Req, Res>; | ||
@@ -858,3 +898,11 @@ post: IHttpReqPerform<Req, Res>; | ||
declare export type IWrappedValue<V = any, W = Object> = { | ||
.../* Flow doesn't support conditional types, use `$Call` utility type */ any, | ||
...$FlowGen$If< | ||
$FlowGen$Assignable<W, { [key: string]: any }[]>, | ||
UnionToIntersection<$ElementType<W, number>>, | ||
$FlowGen$If< | ||
$FlowGen$Assignable<W, { [key: string]: any }>, | ||
W, | ||
{ [key: string]: any } | ||
> | ||
>, | ||
...{ | ||
@@ -861,0 +909,0 @@ value: V, |
{ | ||
"name": "@qiwi/substrate-types", | ||
"version": "1.53.0", | ||
"version": "1.53.1", | ||
"main": "target/es5/index.js", | ||
@@ -19,14 +19,14 @@ "source": "target/ts/index.ts", | ||
"scripts": { | ||
"clean": "rm -rf target buildcache flow-typed typings docs coverage buildstamp.json", | ||
"build": "yarn aliasgen && npm-run-all -p -l build:es5 build:es6 build:ts build:libdef docs build:stamp", | ||
"build:es5": "mkdir -p target/es5 && tsc -p tsconfig.json --target ES5 --outDir target/es5", | ||
"build:es6": "mkdir -p target/es6 && tsc -p tsconfig.json --target ES6 --outDir target/es6", | ||
"build:ts": "cp -r src/main/ts/ target/ts/", | ||
"build:libdef": "libdefkit --tsconfig=tsconfig.json", | ||
"test": "cp typings/index.d.ts src/test/ts/libdef/index.d.ts && yarn dtslint", | ||
"jest": "jest --config=jest.config.json --detectOpenHandles --forceExit", | ||
"dtslint": "dtslint src/test/ts/libdef --localTs ../../node_modules/typescript/lib --expectOnly", | ||
"aliasgen": "node -r esm ../../scripts/js/alias-gen.js", | ||
"docs": "typedoc", | ||
"build:stamp": "buildstamp --git --out.path buildstamp.json" | ||
"clean": "rimraf target buildcache flow-typed typings docs coverage buildstamp.json", | ||
"build": "yarn aliasgen && concurrently -n yarn:build:es5 yarn:build:es6 yarn:build:ts yarn:build:libdef yarn:docs yarn:build:stamp", | ||
"build:es5": "mkdirp target/es5 && tsc -p tsconfig.json --target ES5 --outDir target/es5", | ||
"build:es6": "mkdirp target/es6 && tsc -p tsconfig.json --target ES6 --outDir target/es6", | ||
"build:ts": "cpy src/main/ts/ target/ts/ --flat", | ||
"build:libdef": "npx @qiwi/libdefkit -p libdefkit --tsconfig=tsconfig.json", | ||
"build:stamp": "buildstamp --git --out.path buildstamp.json", | ||
"test": "cpy typings/index.d.ts src/test/ts/libdef/index.d.ts && yarn dtslint", | ||
"jest": "yarn jest --config=jest.config.json --detectOpenHandles --forceExit", | ||
"dtslint": "yarn dtslint src/test/ts/libdef --localTs ../../node_modules/typescript/lib --expectOnly", | ||
"aliasgen": "node -r @qiwi/esm ../../scripts/js/alias-gen.js", | ||
"docs": "typedoc" | ||
}, | ||
@@ -42,22 +42,20 @@ "files": [ | ||
"devDependencies": { | ||
"@qiwi/uniconfig": "3.5.2", | ||
"@qiwi/substrate-infra": "1.2.0", | ||
"@qiwi/substrate-infra": "1.2.1", | ||
"@qiwi/uniconfig": "3.5.9", | ||
"@types/bluebird": "3.5.36", | ||
"@types/config": "0.0.40", | ||
"@types/jest": "27.0.2", | ||
"@types/lodash": "4.14.176", | ||
"@types/node": "16.11.7", | ||
"@types/config": "0.0.41", | ||
"@types/jest": "27.4.1", | ||
"@types/lodash": "4.14.181", | ||
"@types/node": "17.0.23", | ||
"@types/parsimmon": "1.10.6", | ||
"@types/underscore": "1.11.3", | ||
"axios": "0.24.0", | ||
"@types/underscore": "1.11.4", | ||
"axios": "0.26.1", | ||
"bluebird": "3.7.2", | ||
"conf": "10.0.3", | ||
"config": "3.3.6", | ||
"conf": "10.1.2", | ||
"config": "3.3.7", | ||
"cross-fetch": "3.1.5", | ||
"lodash": "4.17.21", | ||
"underscore": "1.13.1", | ||
"cross-fetch": "3.1.4", | ||
"reflect-metadata": "0.1.13" | ||
"reflect-metadata": "0.1.13", | ||
"underscore": "1.13.2" | ||
}, | ||
"dependencies": {}, | ||
"peerDependencies": {}, | ||
"license": "MIT", | ||
@@ -71,4 +69,3 @@ "repository": { | ||
"url": "https://github.com/qiwi/substrate/issues" | ||
}, | ||
"optionalDependencies": {} | ||
} | ||
} |
export { IStringMap as StringMap } from './IStringMap'; | ||
export { IAnyMap as AnyMap } from './IAnyMap'; | ||
export { IEventEmitter as EventEmitter } from './IEventEmitter'; | ||
export { ILogger as Logger, LogLevel, ILoggerMethod as LoggerMethod } from './ILogger'; | ||
export { ILogger as Logger, LogLevel, ILoggerMethod as LoggerMethod, } from './ILogger'; | ||
export { TUtilGet as UtilGet } from './IUtilGet'; | ||
@@ -19,4 +19,4 @@ export { TUtilSet as UtilSet } from './IUtilSet'; | ||
export { IConfig as Config } from './IConfig'; | ||
export { IConstructor as Constructor, IConstructable as Constructable, Abstract, IClass as Class } from './IConstructor'; | ||
export { IIterable as Iterable, IIterator as Iterator, IIteratorResult as IteratorResult } from './IIterable'; | ||
export { IConstructor as Constructor, IConstructable as Constructable, Abstract, IClass as Class, } from './IConstructor'; | ||
export { IIterable as Iterable, IIterator as Iterator, IIteratorResult as IteratorResult, } from './IIterable'; | ||
export { IMiddleware as Middleware, IAsyncMiddleware as AsyncMiddleware, IErrorMiddleware as ErrorMiddleware, IRequestMiddleware as RequestMiddleware, IRequest as Request, IResponse as Response, INext as Next, } from './IMiddleware'; | ||
@@ -30,6 +30,6 @@ export { IPool as Pool, IPooledObject as PooledObject, IPooledObjectFactory as PooledObjectFactory, IPooledObjectStatus as PooledObjectStatus, } from './IPool'; | ||
export { IEnableable as Enableable } from './IEnableable'; | ||
export { IPipe as Pipe, IPipeline as Pipeline, INormalPipe as NormalPipe, INormalPipeline as NormalPipeline } from './IPipeline'; | ||
export { IPipe as Pipe, IPipeline as Pipeline, INormalPipe as NormalPipe, INormalPipeline as NormalPipeline, } from './IPipeline'; | ||
export { IExtra as Extra } from './IExtra'; | ||
export { INil as Nil, INullOrUndefined as NullOrUndefined, INullable as Nullable, INilable as Nilable } from './INil'; | ||
export { INil as Nil, INullOrUndefined as NullOrUndefined, INullable as Nullable, INilable as Nilable, } from './INil'; | ||
export { IExecutionMode as ExecutionMode } from './IExecutionMode'; | ||
export { IDeviceInfo as DeviceInfo, IDeviceInfoStrict as DeviceInfoStrict } from './IDeviceInfo'; | ||
export { IDeviceInfo as DeviceInfo, IDeviceInfoStrict as DeviceInfoStrict, } from './IDeviceInfo'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./export"), exports); | ||
(0, tslib_1.__exportStar)(require("./aliases"), exports); | ||
(0, tslib_1.__exportStar)(require("./helpers"), exports); | ||
(0, tslib_1.__exportStar)(require("./extras"), exports); | ||
tslib_1.__exportStar(require("./export"), exports); | ||
tslib_1.__exportStar(require("./aliases"), exports); | ||
tslib_1.__exportStar(require("./helpers"), exports); | ||
tslib_1.__exportStar(require("./extras"), exports); | ||
//# sourceMappingURL=index.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./export"), exports); | ||
(0, tslib_1.__exportStar)(require("./aliases"), exports); | ||
(0, tslib_1.__exportStar)(require("./helpers"), exports); | ||
(0, tslib_1.__exportStar)(require("./extras"), exports); | ||
tslib_1.__exportStar(require("./export"), exports); | ||
tslib_1.__exportStar(require("./aliases"), exports); | ||
tslib_1.__exportStar(require("./helpers"), exports); | ||
tslib_1.__exportStar(require("./extras"), exports); | ||
//# sourceMappingURL=index.js.map |
declare module '@qiwi/substrate-types' { | ||
/** */ | ||
export * from '@qiwi/substrate-types/target/es5'; | ||
export * from '@qiwi/substrate-types/target/es6'; | ||
} | ||
@@ -5,0 +5,0 @@ // Generated by dts-bundle v0.7.5 |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171350
3207