@qiwi/substrate-types
Advanced tools
Comparing version 1.8.0 to 1.9.0
@@ -0,1 +1,8 @@ | ||
# [@qiwi/substrate-types-v1.9.0](https://github.com/qiwi/substrate/compare/v1.8.0...v1.9.0) (2019-04-01) | ||
### Features | ||
* **types:** add IPromise ([8250f24](https://github.com/qiwi/substrate/commit/8250f24)), closes [#4](https://github.com/qiwi/substrate/issues/4) | ||
# [@qiwi/substrate-types-v1.8.0](https://github.com/qiwi/substrate/compare/v1.7.0...v1.8.0) (2019-03-27) | ||
@@ -2,0 +9,0 @@ |
@@ -11,1 +11,2 @@ export { IStringMap } from './IStringMap'; | ||
export { ICurrency } from './ICurrency'; | ||
export { IPromiseConstructor, IPromise } from './IPromise'; |
@@ -11,1 +11,2 @@ export { IStringMap } from './IStringMap'; | ||
export { ICurrency } from './ICurrency'; | ||
export { IPromiseConstructor, IPromise } from './IPromise'; |
@@ -11,1 +11,2 @@ export { IStringMap } from './IStringMap' | ||
export { ICurrency } from './ICurrency' | ||
export { IPromiseConstructor, IPromise } from './IPromise' |
{ | ||
"name": "@qiwi/substrate-types", | ||
"version": "1.8.0", | ||
"version": "1.9.0", | ||
"main": "lib/es5/index.js", | ||
@@ -37,2 +37,3 @@ "types": "typings/index.d.ts", | ||
"devDependencies": { | ||
"@types/bluebird": "^3.5.26", | ||
"@types/jest": "^24.0.11", | ||
@@ -43,2 +44,3 @@ "@types/lodash": "^4.14.123", | ||
"@types/underscore": "^1.8.13", | ||
"bluebird": "^3.5.3", | ||
"dts-generator": "^3.0.0", | ||
@@ -45,0 +47,0 @@ "dtslint": "^0.5.5", |
@@ -40,2 +40,17 @@ declare module '@qiwi/substrate-types/lib/es5/IAnyMap' { | ||
} | ||
declare module '@qiwi/substrate-types/lib/es5/IPromise' { | ||
type TPromiseExecutor<TValue = any, TReason = any> = (resolve: (value: TValue) => void, reject: (reason: TReason) => void) => void; | ||
interface IPromiseConstructor<TValue = any, TReason = any> { | ||
new (executor: TPromiseExecutor<TValue>): IPromise<TValue, TReason>; | ||
all: (values: Array<IPromise<TValue, TReason>>) => IPromise<TValue[], TReason>; | ||
race: (values: Array<IPromise<TValue, TReason>>) => IPromise<TValue, TReason>; | ||
reject: (reason?: TReason) => IPromise<TValue, TReason>; | ||
resolve: (value?: TValue) => IPromise<TValue, TReason>; | ||
} | ||
interface IPromise<TValue = any, TReason = any> { | ||
then: (onSuccess?: (value: TValue) => any, onReject?: (reason: TReason) => any) => IPromise; | ||
catch: (onReject: (reason: TReason) => any) => IPromise; | ||
finally?: (onFinally: () => any) => IPromise; | ||
} | ||
} | ||
declare module '@qiwi/substrate-types/lib/es5/IStringMap' { | ||
@@ -80,2 +95,3 @@ type IStringMap = { | ||
export { ICurrency } from '@qiwi/substrate-types/lib/es5/ICurrency'; | ||
export { IPromiseConstructor, IPromise } from '@qiwi/substrate-types/lib/es5/IPromise'; | ||
} | ||
@@ -82,0 +98,0 @@ declare module '@qiwi/substrate-types' { |
@@ -51,2 +51,27 @@ /** | ||
} | ||
declare module "@qiwi/substrate-types/lib/es5/IPromise" { | ||
declare type TPromiseExecutor<TValue = any, TReason = any> = ( | ||
resolve: (value: TValue) => void, | ||
reject: (reason: TReason) => void | ||
) => void; | ||
declare interface IPromiseConstructor<TValue = any, TReason = any> { | ||
new(executor: TPromiseExecutor<TValue>): IPromise<TValue, TReason>; | ||
all: ( | ||
values: Array<IPromise<TValue, TReason>> | ||
) => IPromise<TValue[], TReason>; | ||
race: ( | ||
values: Array<IPromise<TValue, TReason>> | ||
) => IPromise<TValue, TReason>; | ||
reject: (reason?: TReason) => IPromise<TValue, TReason>; | ||
resolve: (value?: TValue) => IPromise<TValue, TReason>; | ||
} | ||
declare interface IPromise<TValue = any, TReason = any> { | ||
then: ( | ||
onSuccess?: (value: TValue) => any, | ||
onReject?: (reason: TReason) => any | ||
) => IPromise<>; | ||
catch: (onReject: (reason: TReason) => any) => IPromise<>; | ||
finally?: (onFinally: () => any) => IPromise<>; | ||
} | ||
} | ||
declare module "@qiwi/substrate-types/lib/es5/IStringMap" { | ||
@@ -128,2 +153,7 @@ declare type IStringMap = { | ||
declare export { ICurrency } from "@qiwi/substrate-types/lib/es5/ICurrency"; | ||
declare export { | ||
IPromiseConstructor, | ||
IPromise | ||
} from "@qiwi/substrate-types/lib/es5/IPromise"; | ||
} | ||
@@ -130,0 +160,0 @@ declare module "@qiwi/substrate-types" { |
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
29242
89
501
17