@qiwi/substrate-types
Advanced tools
Comparing version 1.23.0 to 1.24.0
@@ -0,1 +1,13 @@ | ||
# @qiwi/substrate-types [1.24.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.23.0...@qiwi/substrate-types@1.24.0) (2020-01-20) | ||
### Bug Fixes | ||
* **docs:** rollback typedoc to 0.15.8 ([e930e74](https://github.com/qiwi/substrate/commit/e930e74f45f8038453b64435be185c2d20c781f4)) | ||
### Features | ||
* **types:** add alias IConstructor > IConstructable ([00cc44d](https://github.com/qiwi/substrate/commit/00cc44d4b74387b5ab8e52e7144766fbb98797bb)) | ||
# @qiwi/substrate-types [1.23.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.22.0...@qiwi/substrate-types@1.23.0) (2020-01-09) | ||
@@ -2,0 +14,0 @@ |
{ | ||
"name": "@qiwi/substrate-types", | ||
"version": "1.23.0", | ||
"version": "1.24.0", | ||
"main": "target/es5/index.js", | ||
@@ -44,5 +44,5 @@ "source": "target/ts/index.ts", | ||
"@types/config": "^0.0.36", | ||
"@types/jest": "^24.0.25", | ||
"@types/jest": "^24.9.0", | ||
"@types/lodash": "^4.14.149", | ||
"@types/node": "^13.1.5", | ||
"@types/node": "^13.1.8", | ||
"@types/parsimmon": "^1.10.0", | ||
@@ -52,3 +52,3 @@ "@types/underscore": "^1.9.4", | ||
"conf": "^6.2.0", | ||
"config": "^3.2.4", | ||
"config": "^3.2.5", | ||
"dts-generator": "^3.0.0", | ||
@@ -60,8 +60,8 @@ "dtslint": "^2.0.5", | ||
"ts-loader": "^6.2.1", | ||
"ts-node": "^8.5.4", | ||
"ts-node": "^8.6.2", | ||
"ts-to-flow": "^0.0.3", | ||
"typescript": "3.7.4", | ||
"typescript": "3.7.5", | ||
"underscore": "^1.9.2", | ||
"typedoc": "^0.15.6", | ||
"typedoc-plugin-external-module-name": "^2.1.0" | ||
"typedoc": "0.15.8", | ||
"typedoc-plugin-external-module-name": "3.0.0" | ||
}, | ||
@@ -68,0 +68,0 @@ "dependencies": {}, |
@@ -21,5 +21,5 @@ /** @module @qiwi/substrate-types */ | ||
export { IConfig as Config } from './IConfig'; | ||
export { IConstructor as Constructor } from './IConstructor'; | ||
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'; | ||
export { IPool as Pool, IPooledObject as PooledObject, IPooledObjectFactory as PooledObjectFactory, IPooledObjectStatus as PooledObjectStatus } from './IPool'; |
@@ -21,5 +21,5 @@ /** @module @qiwi/substrate-types */ | ||
export { IConfig } from './IConfig'; | ||
export { IConstructor } from './IConstructor'; | ||
export { IConstructor, IConstructable, Abstract, IClass } from './IConstructor'; | ||
export { IIterable, IIterator, IIteratorResult } from './IIterable'; | ||
export { IMiddleware, IAsyncMiddleware, IErrorMiddleware, IRequestMiddleware, IRequest, IResponse, INext } from './IMiddleware'; | ||
export { IPool, IPooledObject, IPooledObjectFactory, IPooledObjectStatus } from './IPool'; |
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
export declare type IConstructor<T = {}> = new (...args: any[]) => T; | ||
export declare type Abstract<T = {}> = Function & { | ||
prototype: T; | ||
}; | ||
export declare type IConstructor<T = {}, A extends any[] = any[]> = new (...args: A) => T; | ||
export declare type IClass<T = {}> = Abstract<T> & IConstructor<T>; | ||
export declare type IConstructable<T = {}, A extends any[] = any[]> = IConstructor<T, A>; |
@@ -21,5 +21,5 @@ /** @module @qiwi/substrate-types */ | ||
export { IConfig as Config } from './IConfig'; | ||
export { IConstructor as Constructor } from './IConstructor'; | ||
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'; | ||
export { IPool as Pool, IPooledObject as PooledObject, IPooledObjectFactory as PooledObjectFactory, IPooledObjectStatus as PooledObjectStatus } from './IPool'; |
@@ -21,5 +21,5 @@ /** @module @qiwi/substrate-types */ | ||
export { IConfig } from './IConfig'; | ||
export { IConstructor } from './IConstructor'; | ||
export { IConstructor, IConstructable, Abstract, IClass } from './IConstructor'; | ||
export { IIterable, IIterator, IIteratorResult } from './IIterable'; | ||
export { IMiddleware, IAsyncMiddleware, IErrorMiddleware, IRequestMiddleware, IRequest, IResponse, INext } from './IMiddleware'; | ||
export { IPool, IPooledObject, IPooledObjectFactory, IPooledObjectStatus } from './IPool'; |
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
export declare type IConstructor<T = {}> = new (...args: any[]) => T; | ||
export declare type Abstract<T = {}> = Function & { | ||
prototype: T; | ||
}; | ||
export declare type IConstructor<T = {}, A extends any[] = any[]> = new (...args: A) => T; | ||
export declare type IClass<T = {}> = Abstract<T> & IConstructor<T>; | ||
export declare type IConstructable<T = {}, A extends any[] = any[]> = IConstructor<T, A>; |
@@ -22,4 +22,9 @@ /** @module @qiwi/substrate-types */ | ||
export { IConfig as Config } from './IConfig' | ||
export { IConstructor as Constructor } from './IConstructor' | ||
export { | ||
IConstructor as Constructor, | ||
IConstructable as Constructable, | ||
Abstract, | ||
IClass as Class | ||
} from './IConstructor' | ||
export { | ||
IIterable as Iterable, | ||
@@ -26,0 +31,0 @@ IIterator as Iterator, |
@@ -22,4 +22,9 @@ /** @module @qiwi/substrate-types */ | ||
export { IConfig } from './IConfig' | ||
export { IConstructor } from './IConstructor' | ||
export { | ||
IConstructor, | ||
IConstructable, | ||
Abstract, | ||
IClass | ||
} from './IConstructor' | ||
export { | ||
IIterable, | ||
@@ -26,0 +31,0 @@ IIterator, |
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
export type IConstructor<T = {}> = new (...args: any[]) => T | ||
// https://github.com/microsoft/TypeScript/issues/17572 | ||
export type Abstract<T= {}> = Function & { prototype: T } | ||
export type IConstructor<T= {}, A extends any[] = any[]> = new (...args: A) => T | ||
export type IClass<T= {}> = Abstract<T> & IConstructor<T> | ||
export type IConstructable<T= {}, A extends any[] = any[]> = IConstructor<T, A> |
@@ -54,3 +54,8 @@ declare module '@qiwi/substrate-types/target/es5/IAnyMap' { | ||
/** */ | ||
export type IConstructor<T = {}> = new (...args: any[]) => T; | ||
export type Abstract<T = {}> = Function & { | ||
prototype: T; | ||
}; | ||
export type IConstructor<T = {}, A extends any[] = any[]> = new (...args: A) => T; | ||
export type IClass<T = {}> = Abstract<T> & IConstructor<T>; | ||
export type IConstructable<T = {}, A extends any[] = any[]> = IConstructor<T, A>; | ||
} | ||
@@ -266,3 +271,3 @@ declare module '@qiwi/substrate-types/target/es5/ICurrency' { | ||
export { IConfig } from '@qiwi/substrate-types/target/es5/IConfig'; | ||
export { IConstructor } from '@qiwi/substrate-types/target/es5/IConstructor'; | ||
export { IConstructor, IConstructable, Abstract, IClass } from '@qiwi/substrate-types/target/es5/IConstructor'; | ||
export { IIterable, IIterator, IIteratorResult } from '@qiwi/substrate-types/target/es5/IIterable'; | ||
@@ -322,3 +327,3 @@ export { IMiddleware, IAsyncMiddleware, IErrorMiddleware, IRequestMiddleware, IRequest, IResponse, INext } from '@qiwi/substrate-types/target/es5/IMiddleware'; | ||
export { IConfig as Config } from '@qiwi/substrate-types/target/es5/IConfig'; | ||
export { IConstructor as Constructor } from '@qiwi/substrate-types/target/es5/IConstructor'; | ||
export { IConstructor as Constructor, IConstructable as Constructable, Abstract, IClass as Class } from '@qiwi/substrate-types/target/es5/IConstructor'; | ||
export { IIterable as Iterable, IIterator as Iterator, IIteratorResult as IteratorResult } from '@qiwi/substrate-types/target/es5/IIterable'; | ||
@@ -325,0 +330,0 @@ export { IMiddleware as Middleware, IAsyncMiddleware as AsyncMiddleware, IErrorMiddleware as ErrorMiddleware, IRequestMiddleware as RequestMiddleware, IRequest as Request, IResponse as Response, INext as Next } from '@qiwi/substrate-types/target/es5/IMiddleware'; |
@@ -84,3 +84,14 @@ /** | ||
*/ | ||
declare export type IConstructor<T = { ... }> = (...args: any[]) => T; | ||
declare export type Abstract<T = { ... }> = Function & { | ||
prototype: T, | ||
... | ||
}; | ||
declare export type IConstructor<T = { ... }, A: any[] = any[]> = ( | ||
...args: A | ||
) => T; | ||
declare export type IClass<T = { ... }> = Abstract<T> & IConstructor<T>; | ||
declare export type IConstructable< | ||
T = { ... }, | ||
A: any[] = any[] | ||
> = IConstructor<T, A>; | ||
} | ||
@@ -410,3 +421,8 @@ | ||
declare export { IConstructor } from "@qiwi/substrate-types/target/es5/IConstructor"; | ||
declare export { | ||
IConstructor, | ||
IConstructable, | ||
Abstract, | ||
IClass | ||
} from "@qiwi/substrate-types/target/es5/IConstructor"; | ||
@@ -506,3 +522,8 @@ declare export { | ||
declare export { IConstructor as Constructor } from "@qiwi/substrate-types/target/es5/IConstructor"; | ||
declare export { | ||
IConstructor as Constructor, | ||
IConstructable as Constructable, | ||
Abstract, | ||
IClass as Class | ||
} from "@qiwi/substrate-types/target/es5/IConstructor"; | ||
@@ -509,0 +530,0 @@ declare export { |
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
94184
1971