Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@qiwi/substrate-types

Package Overview
Dependencies
Maintainers
5
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@qiwi/substrate-types - npm Package Compare versions

Comparing version 1.8.0 to 1.9.0

lib/es5/IPromise.d.ts

7

CHANGELOG.md

@@ -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 @@

1

lib/es5/index.d.ts

@@ -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'

4

package.json
{
"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" {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc