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.16.0 to 1.16.1

target/es5/IAnyMap.d.ts

7

CHANGELOG.md

@@ -0,1 +1,8 @@

## @qiwi/substrate-types [1.16.1](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.16.0...@qiwi/substrate-types@1.16.1) (2019-10-26)
### Bug Fixes
* **facade:** remove redundant typings refs ([f7121ce](https://github.com/qiwi/substrate/commit/f7121ce8e639d17fb3225bfb3c2c7babdbd26a0e))
# [@qiwi/substrate-types-v1.16.0](https://github.com/qiwi/substrate/compare/v1.15.0...v1.16.0) (2019-07-05)

@@ -2,0 +9,0 @@

74

package.json
{
"name": "@qiwi/substrate-types",
"version": "1.16.0",
"main": "lib/es5/index.js",
"types": "typings/index.d.ts",
"version": "1.16.1",
"main": "target/es5/index.js",
"source": "target/ts/index.ts",
"types": "target/es5/index.d.ts",
"typescript": {
"definition": "target/es5/index.d.ts"
},
"typesVersions": {
">=3.1": {
"*": [
"typings/index.d.ts",
"src/test/*"
"target/es5/index.d.ts",
"src/test/ts/*"
]

@@ -16,14 +20,14 @@ }

"scripts": {
"clean": "rm -rf lib",
"build": "yarn build_es5 && yarn build_es6 && yarn build_ts && yarn libdef",
"build_es5": "mkdir -p lib/es5 && tsc -p tsconfig.json --target ES5 --outDir lib/es5",
"build_es6": "mkdir -p lib/es6 && tsc -p tsconfig.json --target ES6 --outDir lib/es6",
"build_ts": "cp -r src/main/ lib/ts/",
"clean": "rm -rf target",
"build": "yarn build:es5 && yarn build:es6 && yarn build:ts && yarn libdef",
"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/",
"libdef": "yarn dtsgen && yarn libdeffix && yarn flowgen",
"libdeffix": "node -r esm ../../scripts/libdef-fix.js --flow=./typings/index.flow.js --dts=./typings/index.d.ts",
"dtsgen": "dts-generator --project ./ --out typings/index.d.ts --prefix @qiwi/substrate-types/lib/es5 --name @qiwi/substrate-types --main @qiwi/substrate-types/lib/es5/index --moduleResolution node",
"libdeffix": "node -r esm ../../scripts/js/libdef-fix.js --flow=./typings/index.flow.js --dts=./typings/index.d.ts",
"dtsgen": "dts-generator --project ./ --out typings/index.d.ts --prefix @qiwi/substrate-types/target/es5 --name @qiwi/substrate-types --main @qiwi/substrate-types/target/es5/index",
"flowgen": "flowgen typings/index.d.ts --output-file typings/index.flow.js",
"test": "cp typings/index.d.ts src/test/index.d.ts && yarn dtslint",
"test": "cp typings/index.d.ts src/test/ts/index.d.ts && yarn dtslint",
"jest": "jest --config=jest.config.json",
"dtslint": "dtslint src/test --onlyTestTsNext"
"dtslint": "dtslint src/test/ts --localTs ../../node_modules/typescript/lib --expectOnly"
},

@@ -33,28 +37,30 @@ "files": [

"CHANGELOG.md",
"typings/",
"lib/"
"typings",
"target"
],
"devDependencies": {
"@qiwi/uniconfig": "^3.0.1",
"@types/bluebird": "^3.5.27",
"@types/config": "^0.0.34",
"@types/jest": "^24.0.15",
"@types/lodash": "^4.14.135",
"@types/node": "^12.0.10",
"@qiwi/uniconfig": "^3.1.0",
"@types/bluebird": "^3.5.28",
"@types/config": "^0.0.35",
"@types/jest": "^24.0.19",
"@types/lodash": "^4.14.144",
"@types/node": "^12.11.7",
"@types/parsimmon": "^1.10.0",
"@types/underscore": "^1.9.1",
"bluebird": "^3.5.5",
"conf": "^4.1.0",
"config": "^3.1.0",
"@types/underscore": "^1.9.3",
"bluebird": "^3.7.1",
"conf": "^6.1.0",
"config": "^3.2.3",
"dts-generator": "^3.0.0",
"dtslint": "^0.8.0",
"flowgen": "^1.9.0",
"lodash": "^4.17.11",
"replace-in-file": "^4.1.0",
"ts-loader": "^6.0.4",
"ts-node": "^8.3.0",
"dtslint": "^0.9.9",
"flowgen": "^1.10.0",
"lodash": "^4.17.15",
"replace-in-file": "^4.2.0",
"ts-loader": "^6.2.1",
"ts-node": "^8.4.1",
"ts-to-flow": "^0.0.3",
"typescript": "3.5.2",
"typescript": "3.6.4",
"underscore": "^1.9.1"
}
},
"dependencies": {},
"peerDependencies": {}
}

@@ -1,3 +0,3 @@

declare module '@qiwi/substrate-types/lib/es5/IAnyMap' {
type IAnyMap = {
declare module '@qiwi/substrate-types/target/es5/IAnyMap' {
export type IAnyMap = {
[key: string]: any;

@@ -7,10 +7,10 @@ [key: number]: any;

}
declare module '@qiwi/substrate-types/lib/es5/ICloneable' {
interface ICloneable<T> {
declare module '@qiwi/substrate-types/target/es5/ICloneable' {
export interface ICloneable<T> {
clone(): T;
}
}
declare module '@qiwi/substrate-types/lib/es5/ICollection' {
type ICollectionItem = any;
interface ICollection<T> {
declare module '@qiwi/substrate-types/target/es5/ICollection' {
export type ICollectionItem = any;
export interface ICollection<T> {
get: (index: number | string) => T | undefined;

@@ -24,5 +24,5 @@ add: (index: number | string, item: T) => T;

}
declare module '@qiwi/substrate-types/lib/es5/IConfig' {
type TConfigKey = string;
interface IConfig<T = any> {
declare module '@qiwi/substrate-types/target/es5/IConfig' {
export type TConfigKey = string;
export interface IConfig<T = any> {
set?: (key: TConfigKey, value: T) => void;

@@ -37,4 +37,4 @@ get: (key: TConfigKey) => T;

}
declare module '@qiwi/substrate-types/lib/es5/IConfigurable' {
interface IConfigurable {
declare module '@qiwi/substrate-types/target/es5/IConfigurable' {
export interface IConfigurable {
setConfig: (options?: any) => void;

@@ -44,9 +44,9 @@ getConfig: () => any;

}
declare module '@qiwi/substrate-types/lib/es5/ICurrency' {
type ICurrency = string;
declare module '@qiwi/substrate-types/target/es5/ICurrency' {
export type ICurrency = string;
}
declare module '@qiwi/substrate-types/lib/es5/IEventEmitter' {
type IEventListener = (...args: any[]) => void;
type IEmitterMethod = (type: string, listener: IEventListener) => void;
interface IEventEmitter {
declare module '@qiwi/substrate-types/target/es5/IEventEmitter' {
export type IEventListener = (...args: any[]) => void;
export type IEmitterMethod = (type: string, listener: IEventListener) => void;
export interface IEventEmitter {
emit(type: string, ...args: any[]): void;

@@ -58,6 +58,6 @@ off: IEmitterMethod;

}
declare module '@qiwi/substrate-types/lib/es5/ILogger' {
type ILoggerMethod = (...args: any[]) => void;
type TLogLevel = number;
interface ILogger {
declare module '@qiwi/substrate-types/target/es5/ILogger' {
export type ILoggerMethod = (...args: any[]) => void;
export type TLogLevel = number;
export interface ILogger {
trace: ILoggerMethod;

@@ -74,8 +74,8 @@ debug: ILoggerMethod;

}
declare module '@qiwi/substrate-types/lib/es5/IMiddleware' {
interface IRequest {
declare module '@qiwi/substrate-types/target/es5/IMiddleware' {
export interface IRequest {
res?: IResponse;
[key: string]: any;
}
interface IResponse {
export interface IResponse {
status: (status: number) => IResponse;

@@ -87,24 +87,24 @@ send: (arg: string | object) => IResponse;

}
interface INext {
export interface INext {
(...args: any[]): any;
}
interface IRequestMiddleware {
export interface IRequestMiddleware {
(req: IRequest, res: IResponse, next?: INext): void;
}
interface IErrorMiddleware {
export interface IErrorMiddleware {
(err: Error, req: IRequest, res: IResponse, next?: INext): void;
}
type IMiddleware = IRequestMiddleware | IErrorMiddleware;
interface IAsyncRequestMiddleware {
export type IMiddleware = IRequestMiddleware | IErrorMiddleware;
export interface IAsyncRequestMiddleware {
(req: IRequest, res: IResponse, next?: INext): Promise<void>;
}
interface IAsyncErrorMiddleware {
export interface IAsyncErrorMiddleware {
(err: Error, req: IRequest, res: IResponse, next?: INext): Promise<void>;
}
type IAsyncMiddleware = IAsyncRequestMiddleware | IAsyncErrorMiddleware;
export type IAsyncMiddleware = IAsyncRequestMiddleware | IAsyncErrorMiddleware;
}
declare module '@qiwi/substrate-types/lib/es5/IMoney' {
import { ICurrency } from '@qiwi/substrate-types/lib/es5/ICurrency';
type IValue = number;
interface IMoney {
declare module '@qiwi/substrate-types/target/es5/IMoney' {
import { ICurrency } from '@qiwi/substrate-types/target/es5/ICurrency';
export type IValue = number;
export interface IMoney {
value: IValue;

@@ -115,5 +115,5 @@ currency: ICurrency;

}
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> {
declare module '@qiwi/substrate-types/target/es5/IPromise' {
export type TPromiseExecutor<TValue = any, TReason = any> = (resolve: (value: TValue) => void, reject: (reason: TReason) => void) => void;
export interface IPromiseConstructor<TValue = any, TReason = any> {
new (executor: TPromiseExecutor<TValue>): IPromise<TValue, TReason>;

@@ -125,13 +125,14 @@ all: (values: Array<IPromise<TValue, TReason>>) => IPromise<TValue[], TReason>;

}
interface IPromise<TValue = any, TReason = any> {
export 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;
finally: (onFinally: () => any) => IPromise;
readonly [Symbol.toStringTag]: string;
}
const IPromise: PromiseConstructor;
export const IPromise: PromiseConstructor;
}
declare module '@qiwi/substrate-types/lib/es5/IStack' {
import { ICollection } from '@qiwi/substrate-types/lib/es5/ICollection';
type IStackItem = any;
interface IStack<T> extends ICollection<T> {
declare module '@qiwi/substrate-types/target/es5/IStack' {
import { ICollection } from '@qiwi/substrate-types/target/es5/ICollection';
export type IStackItem = any;
export interface IStack<T> extends ICollection<T> {
push: (...items: Array<T>) => T;

@@ -146,7 +147,7 @@ pop: () => T | undefined;

}
declare module '@qiwi/substrate-types/lib/es5/IStorage' {
type TStorageKey = string;
type TStorageValue = any;
type TStorageTTL = number;
interface IStorage {
declare module '@qiwi/substrate-types/target/es5/IStorage' {
export type TStorageKey = string;
export type TStorageValue = any;
export type TStorageTTL = number;
export interface IStorage {
get: (key: TStorageKey) => TStorageValue;

@@ -160,56 +161,56 @@ set: (key: TStorageKey, value: TStorageValue, ttl?: TStorageTTL) => void;

}
declare module '@qiwi/substrate-types/lib/es5/IStringMap' {
type IStringMap = {
declare module '@qiwi/substrate-types/target/es5/IStringMap' {
export type IStringMap = {
[key: string]: string;
};
}
declare module '@qiwi/substrate-types/lib/es5/IUtilEach' {
type TUtilEachCollection = any[] | object;
type TUtilEachHandler = (value: any, key?: string | number, collection?: TUtilEachCollection) => void;
type TUtilEach = (collection: TUtilEachCollection, handler: TUtilEachHandler) => TUtilEachCollection;
declare module '@qiwi/substrate-types/target/es5/IUtilEach' {
export type TUtilEachCollection = any[] | object;
export type TUtilEachHandler = (value: any, key?: string | number, collection?: TUtilEachCollection) => void;
export type TUtilEach = (collection: TUtilEachCollection, handler: TUtilEachHandler) => TUtilEachCollection;
}
declare module '@qiwi/substrate-types/lib/es5/IUtilGet' {
type TUtilGetPath = Array<string | number> | string;
type TUtilGetObject = object;
type TUtilGetDefaultValue = any;
type TUtilGetResponse = any;
type TUtilGet = (obj: TUtilGetObject, path: TUtilGetPath, defaultValue?: TUtilGetDefaultValue) => TUtilGetResponse;
declare module '@qiwi/substrate-types/target/es5/IUtilGet' {
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;
}
declare module '@qiwi/substrate-types/lib/es5/IUtilMap' {
type TUtilMapCollection = any[] | object;
type TUtilMapHandler = (value: any, key?: string | number, collection?: TUtilMapCollection) => any;
type TUtilMap = (collection: TUtilMapCollection, handler: TUtilMapHandler) => any[];
declare module '@qiwi/substrate-types/target/es5/IUtilMap' {
export type TUtilMapCollection = any[] | object;
export type TUtilMapHandler = (value: any, key?: string | number, collection?: TUtilMapCollection) => any;
export type TUtilMap = (collection: TUtilMapCollection, handler: TUtilMapHandler) => any[];
}
declare module '@qiwi/substrate-types/lib/es5/IUtilSet' {
type TUtilSetPath = Array<string | number> | string;
type TUtilSetObject = object;
type TUtilSetValue = any;
type TUtilSet = (obj: TUtilSetObject, path: TUtilSetPath, value: TUtilSetValue) => void;
declare module '@qiwi/substrate-types/target/es5/IUtilSet' {
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;
}
declare module '@qiwi/substrate-types/lib/es5/TPredicate' {
type TPredicate = (...args: any[]) => boolean;
declare module '@qiwi/substrate-types/target/es5/TPredicate' {
export type TPredicate = (...args: any[]) => boolean;
}
declare module '@qiwi/substrate-types/lib/es5/index' {
export { IStringMap } from '@qiwi/substrate-types/lib/es5/IStringMap';
export { IAnyMap } from '@qiwi/substrate-types/lib/es5/IAnyMap';
export { IEventEmitter } from '@qiwi/substrate-types/lib/es5/IEventEmitter';
export { ILogger, TLogLevel, ILoggerMethod } from '@qiwi/substrate-types/lib/es5/ILogger';
export { TUtilGet } from '@qiwi/substrate-types/lib/es5/IUtilGet';
export { TUtilSet } from '@qiwi/substrate-types/lib/es5/IUtilSet';
export { TUtilEach } from '@qiwi/substrate-types/lib/es5/IUtilEach';
export { TUtilMap } from '@qiwi/substrate-types/lib/es5/IUtilMap';
export { ICloneable } from '@qiwi/substrate-types/lib/es5/ICloneable';
export { ICurrency } from '@qiwi/substrate-types/lib/es5/ICurrency';
export { IPromiseConstructor, IPromise } from '@qiwi/substrate-types/lib/es5/IPromise';
export { IStorage } from '@qiwi/substrate-types/lib/es5/IStorage';
export { IMoney } from '@qiwi/substrate-types/lib/es5/IMoney';
export { IStack } from '@qiwi/substrate-types/lib/es5/IStack';
export { ICollection } from '@qiwi/substrate-types/lib/es5/ICollection';
export { TPredicate } from '@qiwi/substrate-types/lib/es5/TPredicate';
export { IConfigurable } from '@qiwi/substrate-types/lib/es5/IConfigurable';
export { IConfig } from '@qiwi/substrate-types/lib/es5/IConfig';
export { IMiddleware, IAsyncMiddleware, IErrorMiddleware, IRequestMiddleware, IRequest, IResponse, INext } from '@qiwi/substrate-types/lib/es5/IMiddleware';
declare module '@qiwi/substrate-types/target/es5/index' {
export { IStringMap } from '@qiwi/substrate-types/target/es5/IStringMap';
export { IAnyMap } from '@qiwi/substrate-types/target/es5/IAnyMap';
export { IEventEmitter } from '@qiwi/substrate-types/target/es5/IEventEmitter';
export { ILogger, TLogLevel, ILoggerMethod } from '@qiwi/substrate-types/target/es5/ILogger';
export { TUtilGet } from '@qiwi/substrate-types/target/es5/IUtilGet';
export { TUtilSet } from '@qiwi/substrate-types/target/es5/IUtilSet';
export { TUtilEach } from '@qiwi/substrate-types/target/es5/IUtilEach';
export { TUtilMap } from '@qiwi/substrate-types/target/es5/IUtilMap';
export { ICloneable } from '@qiwi/substrate-types/target/es5/ICloneable';
export { ICurrency } from '@qiwi/substrate-types/target/es5/ICurrency';
export { IPromiseConstructor, IPromise } from '@qiwi/substrate-types/target/es5/IPromise';
export { IStorage } from '@qiwi/substrate-types/target/es5/IStorage';
export { IMoney } from '@qiwi/substrate-types/target/es5/IMoney';
export { IStack } from '@qiwi/substrate-types/target/es5/IStack';
export { ICollection } from '@qiwi/substrate-types/target/es5/ICollection';
export { TPredicate } from '@qiwi/substrate-types/target/es5/TPredicate';
export { IConfigurable } from '@qiwi/substrate-types/target/es5/IConfigurable';
export { IConfig } from '@qiwi/substrate-types/target/es5/IConfig';
export { IMiddleware, IAsyncMiddleware, IErrorMiddleware, IRequestMiddleware, IRequest, IResponse, INext } from '@qiwi/substrate-types/target/es5/IMiddleware';
}
declare module '@qiwi/substrate-types' {
export * from '@qiwi/substrate-types/lib/es5/index';
export * from '@qiwi/substrate-types/target/es5/index';
}
/**
* Flowtype definitions for index
* Generated by Flowgen from a Typescript Definition
* Flowgen v1.9.0
* Author: [Joar Wilk](http://twitter.com/joarwilk)
* Repo: http://github.com/joarwilk/flowgen
* Flowgen v1.10.0
*/
declare module "@qiwi/substrate-types/lib/es5/IAnyMap" {
declare type IAnyMap = {
declare module "@qiwi/substrate-types/target/es5/IAnyMap" {
declare export type IAnyMap = {
[key: string]: any,
[key: number]: any
[key: number]: any,
...
};
}
declare module "@qiwi/substrate-types/lib/es5/ICloneable" {
declare interface ICloneable<T> {
declare module "@qiwi/substrate-types/target/es5/ICloneable" {
declare export interface ICloneable<T> {
clone(): T;
}
}
declare module "@qiwi/substrate-types/lib/es5/ICollection" {
declare type ICollectionItem = any;
declare interface ICollection<T> {
declare module "@qiwi/substrate-types/target/es5/ICollection" {
declare export type ICollectionItem = any;
declare export interface ICollection<T> {
get: (index: number | string) => T | void;

@@ -31,5 +32,6 @@ add: (index: number | string, item: T) => T;

}
declare module "@qiwi/substrate-types/lib/es5/IConfig" {
declare type TConfigKey = string;
declare interface IConfig<T = any> {
declare module "@qiwi/substrate-types/target/es5/IConfig" {
declare export type TConfigKey = string;
declare export interface IConfig<T = any> {
set?: (key: TConfigKey, value: T) => void;

@@ -44,4 +46,5 @@ get: (key: TConfigKey) => T;

}
declare module "@qiwi/substrate-types/lib/es5/IConfigurable" {
declare interface IConfigurable {
declare module "@qiwi/substrate-types/target/es5/IConfigurable" {
declare export interface IConfigurable {
setConfig: (options?: any) => void;

@@ -51,12 +54,14 @@ getConfig: () => any;

}
declare module "@qiwi/substrate-types/lib/es5/ICurrency" {
declare type ICurrency = string;
declare module "@qiwi/substrate-types/target/es5/ICurrency" {
declare export type ICurrency = string;
}
declare module "@qiwi/substrate-types/lib/es5/IEventEmitter" {
declare type IEventListener = (...args: any[]) => void;
declare type IEmitterMethod = (
declare module "@qiwi/substrate-types/target/es5/IEventEmitter" {
declare export type IEventListener = (...args: any[]) => void;
declare export type IEmitterMethod = (
type: string,
listener: IEventListener
) => void;
declare interface IEventEmitter {
declare export interface IEventEmitter {
emit(type: string, ...args: any[]): void;

@@ -68,6 +73,7 @@ off: IEmitterMethod;

}
declare module "@qiwi/substrate-types/lib/es5/ILogger" {
declare type ILoggerMethod = (...args: any[]) => void;
declare type TLogLevel = number;
declare interface ILogger {
declare module "@qiwi/substrate-types/target/es5/ILogger" {
declare export type ILoggerMethod = (...args: any[]) => void;
declare export type TLogLevel = number;
declare export interface ILogger {
trace: ILoggerMethod;

@@ -84,8 +90,9 @@ debug: ILoggerMethod;

}
declare module "@qiwi/substrate-types/lib/es5/IMiddleware" {
declare interface IRequest {
declare module "@qiwi/substrate-types/target/es5/IMiddleware" {
declare export interface IRequest {
res?: IResponse;
[key: string]: any;
}
declare interface IResponse {
declare export interface IResponse {
status: (status: number) => IResponse;

@@ -97,27 +104,28 @@ send: (arg: string | { [key: string]: any }) => IResponse;

}
declare interface INext {
declare export interface INext {
(...args: any[]): any;
}
declare interface IRequestMiddleware {
declare export interface IRequestMiddleware {
(req: IRequest, res: IResponse, next?: INext): void;
}
declare interface IErrorMiddleware {
declare export interface IErrorMiddleware {
(err: Error, req: IRequest, res: IResponse, next?: INext): void;
}
declare type IMiddleware = IRequestMiddleware | IErrorMiddleware;
declare interface IAsyncRequestMiddleware {
declare export type IMiddleware = IRequestMiddleware | IErrorMiddleware;
declare export interface IAsyncRequestMiddleware {
(req: IRequest, res: IResponse, next?: INext): Promise<void>;
}
declare interface IAsyncErrorMiddleware {
declare export interface IAsyncErrorMiddleware {
(err: Error, req: IRequest, res: IResponse, next?: INext): Promise<void>;
}
declare type IAsyncMiddleware =
declare export type IAsyncMiddleware =
| IAsyncRequestMiddleware
| IAsyncErrorMiddleware;
}
declare module "@qiwi/substrate-types/lib/es5/IMoney" {
import type { ICurrency } from "@qiwi/substrate-types/lib/es5/ICurrency";
declare type IValue = number;
declare interface IMoney {
declare module "@qiwi/substrate-types/target/es5/IMoney" {
import type { ICurrency } from "@qiwi/substrate-types/target/es5/ICurrency";
declare export type IValue = number;
declare export interface IMoney {
value: IValue;

@@ -128,8 +136,9 @@ currency: ICurrency;

}
declare module "@qiwi/substrate-types/lib/es5/IPromise" {
declare type TPromiseExecutor<TValue = any, TReason = any> = (
declare module "@qiwi/substrate-types/target/es5/IPromise" {
declare export type TPromiseExecutor<TValue = any, TReason = any> = (
resolve: (value: TValue) => void,
reject: (reason: TReason) => void
) => void;
declare interface IPromiseConstructor<TValue = any, TReason = any> {
declare export interface IPromiseConstructor<TValue = any, TReason = any> {
new(executor: TPromiseExecutor<TValue>): IPromise<TValue, TReason>;

@@ -145,3 +154,3 @@ all: (

}
declare interface IPromise<TValue = any, TReason = any> {
declare export interface IPromise<TValue = any, TReason = any> {
then: (

@@ -152,11 +161,13 @@ onSuccess?: (value: TValue) => any,

catch: (onReject: (reason: TReason) => any) => IPromise<>;
finally?: (onFinally: () => any) => IPromise<>;
finally: (onFinally: () => any) => IPromise<>;
+[typeof Symbol.toStringTag]: string;
}
declare var IPromise: PromiseConstructor;
declare export var IPromise: PromiseConstructor;
}
declare module "@qiwi/substrate-types/lib/es5/IStack" {
import type { ICollection } from "@qiwi/substrate-types/lib/es5/ICollection";
declare type IStackItem = any;
declare type IStack<T> = {
declare module "@qiwi/substrate-types/target/es5/IStack" {
import type { ICollection } from "@qiwi/substrate-types/target/es5/ICollection";
declare export type IStackItem = any;
declare export type IStack<T> = {
push: (...items: Array<T>) => T,

@@ -168,10 +179,12 @@ pop: () => T | void,

first: () => T | void,
last: () => T | void
last: () => T | void,
...
} & ICollection<T>;
}
declare module "@qiwi/substrate-types/lib/es5/IStorage" {
declare type TStorageKey = string;
declare type TStorageValue = any;
declare type TStorageTTL = number;
declare interface IStorage {
declare module "@qiwi/substrate-types/target/es5/IStorage" {
declare export type TStorageKey = string;
declare export type TStorageValue = any;
declare export type TStorageTTL = number;
declare export interface IStorage {
get: (key: TStorageKey) => TStorageValue;

@@ -185,10 +198,13 @@ set: (key: TStorageKey, value: TStorageValue, ttl?: TStorageTTL) => void;

}
declare module "@qiwi/substrate-types/lib/es5/IStringMap" {
declare type IStringMap = {
[key: string]: string
declare module "@qiwi/substrate-types/target/es5/IStringMap" {
declare export type IStringMap = {
[key: string]: string,
...
};
}
declare module "@qiwi/substrate-types/lib/es5/IUtilEach" {
declare type TUtilEachCollection = any[] | { [key: string]: any };
declare type TUtilEachHandler = (
declare module "@qiwi/substrate-types/target/es5/IUtilEach" {
declare export type TUtilEachCollection = any[] | { [key: string]: any };
declare export type TUtilEachHandler = (
value: any,

@@ -198,3 +214,3 @@ key?: string | number,

) => void;
declare type TUtilEach = (
declare export type TUtilEach = (
collection: TUtilEachCollection,

@@ -204,8 +220,9 @@ handler: TUtilEachHandler

}
declare module "@qiwi/substrate-types/lib/es5/IUtilGet" {
declare type TUtilGetPath = Array<string | number> | string;
declare type TUtilGetObject = { [key: string]: any };
declare type TUtilGetDefaultValue = any;
declare type TUtilGetResponse = any;
declare type TUtilGet = (
declare module "@qiwi/substrate-types/target/es5/IUtilGet" {
declare export type TUtilGetPath = Array<string | number> | string;
declare export type TUtilGetObject = { [key: string]: any };
declare export type TUtilGetDefaultValue = any;
declare export type TUtilGetResponse = any;
declare export type TUtilGet = (
obj: TUtilGetObject,

@@ -216,5 +233,6 @@ path: TUtilGetPath,

}
declare module "@qiwi/substrate-types/lib/es5/IUtilMap" {
declare type TUtilMapCollection = any[] | { [key: string]: any };
declare type TUtilMapHandler = (
declare module "@qiwi/substrate-types/target/es5/IUtilMap" {
declare export type TUtilMapCollection = any[] | { [key: string]: any };
declare export type TUtilMapHandler = (
value: any,

@@ -224,3 +242,3 @@ key?: string | number,

) => any;
declare type TUtilMap = (
declare export type TUtilMap = (
collection: TUtilMapCollection,

@@ -230,7 +248,8 @@ handler: TUtilMapHandler

}
declare module "@qiwi/substrate-types/lib/es5/IUtilSet" {
declare type TUtilSetPath = Array<string | number> | string;
declare type TUtilSetObject = { [key: string]: any };
declare type TUtilSetValue = any;
declare type TUtilSet = (
declare module "@qiwi/substrate-types/target/es5/IUtilSet" {
declare export type TUtilSetPath = Array<string | number> | string;
declare export type TUtilSetObject = { [key: string]: any };
declare export type TUtilSetValue = any;
declare export type TUtilSet = (
obj: TUtilSetObject,

@@ -241,13 +260,17 @@ path: TUtilSetPath,

}
declare module "@qiwi/substrate-types/lib/es5/TPredicate" {
declare type TPredicate = (...args: any[]) => boolean;
declare module "@qiwi/substrate-types/target/es5/TPredicate" {
declare export type TPredicate = (...args: any[]) => boolean;
}
declare module "@qiwi/substrate-types/lib/es5/index" {
declare export { IStringMap } from "@qiwi/substrate-types/lib/es5/IStringMap";
declare export { IAnyMap } from "@qiwi/substrate-types/lib/es5/IAnyMap";
declare module "@qiwi/substrate-types/target/es5/index" {
declare export {
IStringMap
} from "@qiwi/substrate-types/target/es5/IStringMap";
declare export { IAnyMap } from "@qiwi/substrate-types/target/es5/IAnyMap";
declare export {
IEventEmitter
} from "@qiwi/substrate-types/lib/es5/IEventEmitter";
} from "@qiwi/substrate-types/target/es5/IEventEmitter";

@@ -258,15 +281,21 @@ declare export {

ILoggerMethod
} from "@qiwi/substrate-types/lib/es5/ILogger";
} from "@qiwi/substrate-types/target/es5/ILogger";
declare export { TUtilGet } from "@qiwi/substrate-types/lib/es5/IUtilGet";
declare export { TUtilGet } from "@qiwi/substrate-types/target/es5/IUtilGet";
declare export { TUtilSet } from "@qiwi/substrate-types/lib/es5/IUtilSet";
declare export { TUtilSet } from "@qiwi/substrate-types/target/es5/IUtilSet";
declare export { TUtilEach } from "@qiwi/substrate-types/lib/es5/IUtilEach";
declare export {
TUtilEach
} from "@qiwi/substrate-types/target/es5/IUtilEach";
declare export { TUtilMap } from "@qiwi/substrate-types/lib/es5/IUtilMap";
declare export { TUtilMap } from "@qiwi/substrate-types/target/es5/IUtilMap";
declare export { ICloneable } from "@qiwi/substrate-types/lib/es5/ICloneable";
declare export {
ICloneable
} from "@qiwi/substrate-types/target/es5/ICloneable";
declare export { ICurrency } from "@qiwi/substrate-types/lib/es5/ICurrency";
declare export {
ICurrency
} from "@qiwi/substrate-types/target/es5/ICurrency";

@@ -276,21 +305,23 @@ declare export {

IPromise
} from "@qiwi/substrate-types/lib/es5/IPromise";
} from "@qiwi/substrate-types/target/es5/IPromise";
declare export { IStorage } from "@qiwi/substrate-types/lib/es5/IStorage";
declare export { IStorage } from "@qiwi/substrate-types/target/es5/IStorage";
declare export { IMoney } from "@qiwi/substrate-types/lib/es5/IMoney";
declare export { IMoney } from "@qiwi/substrate-types/target/es5/IMoney";
declare export { IStack } from "@qiwi/substrate-types/lib/es5/IStack";
declare export { IStack } from "@qiwi/substrate-types/target/es5/IStack";
declare export {
ICollection
} from "@qiwi/substrate-types/lib/es5/ICollection";
} from "@qiwi/substrate-types/target/es5/ICollection";
declare export { TPredicate } from "@qiwi/substrate-types/lib/es5/TPredicate";
declare export {
TPredicate
} from "@qiwi/substrate-types/target/es5/TPredicate";
declare export {
IConfigurable
} from "@qiwi/substrate-types/lib/es5/IConfigurable";
} from "@qiwi/substrate-types/target/es5/IConfigurable";
declare export { IConfig } from "@qiwi/substrate-types/lib/es5/IConfig";
declare export { IConfig } from "@qiwi/substrate-types/target/es5/IConfig";

@@ -305,6 +336,7 @@ declare export {

INext
} from "@qiwi/substrate-types/lib/es5/IMiddleware";
} from "@qiwi/substrate-types/target/es5/IMiddleware";
}
declare module "@qiwi/substrate-types" {
declare export * from "@qiwi/substrate-types/lib/es5/index"
declare export * from "@qiwi/substrate-types/target/es5/index"
}
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