@qiwi/substrate-types
Advanced tools
Comparing version 1.38.0 to 1.39.0
@@ -0,1 +1,8 @@ | ||
# @qiwi/substrate-types [1.39.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.38.0...@qiwi/substrate-types@1.39.0) (2020-05-11) | ||
### Features | ||
* **types:** add ITyped and ITypedValue ([e913ae8](https://github.com/qiwi/substrate/commit/e913ae8b72ba8b1cc09a0d4df39823d18783752f)) | ||
# @qiwi/substrate-types [1.38.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.37.0...@qiwi/substrate-types@1.38.0) (2020-04-08) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@qiwi/substrate-types", | ||
"version": "1.38.0", | ||
"version": "1.39.0", | ||
"main": "target/es5/index.js", | ||
@@ -20,10 +20,7 @@ "source": "target/ts/index.ts", | ||
"clean": "rm -rf target", | ||
"build": "yarn aliasgen && yarn build:es5 && yarn build:es6 && yarn build:ts && yarn libdef && yarn docs", | ||
"build": "yarn aliasgen && yarn build:es5 && yarn build:es6 && yarn build:ts && yarn build:libdef && yarn docs", | ||
"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/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", | ||
"build:libdef": "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 && libdeffix --dts=./typings/index.d.ts --prefix=@qiwi/substrate-types/target/es5 && flowgen typings/index.d.ts --output-file flow-typed/index.flow.js", | ||
"test": "cp typings/index.d.ts src/test/ts/libdef/index.d.ts && yarn dtslint", | ||
@@ -39,6 +36,8 @@ "jest": "jest --config=jest.config.json", | ||
"typings", | ||
"flow-typed", | ||
"target" | ||
], | ||
"devDependencies": { | ||
"@qiwi/uniconfig": "3.3.0", | ||
"@qiwi/uniconfig": "3.3.1", | ||
"@qiwi/libdefkit": "^1.0.1", | ||
"@types/axios": "0.14.0", | ||
@@ -48,20 +47,18 @@ "@types/bluebird": "3.5.30", | ||
"@types/jest": "25.2.1", | ||
"@types/lodash": "4.14.149", | ||
"@types/node": "13.11.0", | ||
"@types/lodash": "4.14.150", | ||
"@types/node": "13.13.5", | ||
"@types/parsimmon": "1.10.1", | ||
"@types/underscore": "1.9.4", | ||
"@types/underscore": "1.10.0", | ||
"axios": "0.19.2", | ||
"bluebird": "3.7.2", | ||
"conf": "6.2.3", | ||
"conf": "6.2.4", | ||
"config": "3.3.1", | ||
"dts-generator": "3.0.0", | ||
"dtslint": "3.4.1", | ||
"flowgen": "1.10.0", | ||
"dtslint": "3.5.2", | ||
"lodash": "4.17.15", | ||
"replace-in-file": "5.0.2", | ||
"ts-loader": "6.2.2", | ||
"ts-node": "8.8.2", | ||
"replace-in-file": "6.0.0", | ||
"ts-loader": "7.0.3", | ||
"ts-node": "8.10.1", | ||
"ts-to-flow": "0.0.3", | ||
"typedoc": "0.17.4", | ||
"typedoc-plugin-external-module-name": "3.0.0", | ||
"typedoc": "0.17.6", | ||
"typedoc-plugin-external-module-name": "3.1.0", | ||
"typescript": "3.8.3", | ||
@@ -68,0 +65,0 @@ "underscore": "1.10.2", |
@@ -27,3 +27,3 @@ /** @module @qiwi/substrate-types */ | ||
export { IClientEventDto as ClientEventDto, IClientEventMeta as ClientEventMeta, EnvironmentProfile, } from './IClientEventDto'; | ||
export { INormalValue as NormalValue, IIdentified as Identified, IMetaTyped as MetaTyped, IMetaTypedValue as MetaTypedValue, IWrappedValue as WrappedValue, } from './INormalValue'; | ||
export { INormalValue as NormalValue, IIdentified as Identified, IMetaTyped as MetaTyped, IMetaTypedValue as MetaTypedValue, IWrappedValue as WrappedValue, ITyped as Typed, ITypedValue as TypedValue, IMeted as Meted, IMetedValue as MetedValue, } from './INormalValue'; | ||
export { IFn as Fn, IUnaryFunction as UnaryFunction, IUnaryFn as UnaryFn, ICallable as Callable, } from './IFunction'; | ||
@@ -30,0 +30,0 @@ export { IMetadataProvider as MetadataProvider } from './IMetadata'; |
@@ -27,3 +27,3 @@ /** @module @qiwi/substrate-types */ | ||
export { IClientEventDto, IClientEventMeta, EnvironmentProfile, } from './IClientEventDto'; | ||
export { INormalValue, IIdentified, IMetaTyped, IMetaTypedValue, IWrappedValue, } from './INormalValue'; | ||
export { INormalValue, IIdentified, IMetaTyped, IMetaTypedValue, IWrappedValue, ITyped, ITypedValue, IMeted, IMetedValue, } from './INormalValue'; | ||
export { IFunction, IFn, IUnaryFunction, IUnaryFn, ICallable, } from './IFunction'; | ||
@@ -30,0 +30,0 @@ export { IMetadataProvider } from './IMetadata'; |
@@ -9,7 +9,12 @@ import { IAnyMap } from './IAnyMap'; | ||
}; | ||
export interface IMetaTyped<T = any, M extends IAnyMap = IAnyMap> { | ||
export declare type ITyped<T = any> = { | ||
type: T; | ||
}; | ||
export declare type ITypedValue<V = any, T = any> = IWrappedValue<V, ITyped<T>>; | ||
export declare type IMeted<M extends IAnyMap = IAnyMap> = { | ||
meta: M; | ||
} | ||
}; | ||
export declare type IMetedValue<V = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMeted<M>>; | ||
export declare type IMetaTyped<T = any, M extends IAnyMap = IAnyMap> = ITyped<T> & IMeted<M>; | ||
export declare type IMetaTypedValue<V = any, T = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMetaTyped<T, M>>; | ||
export declare type INormalValue<V = any, T = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, [IMetaTyped<T, M>, IIdentified]>; |
@@ -27,3 +27,3 @@ /** @module @qiwi/substrate-types */ | ||
export { IClientEventDto as ClientEventDto, IClientEventMeta as ClientEventMeta, EnvironmentProfile, } from './IClientEventDto'; | ||
export { INormalValue as NormalValue, IIdentified as Identified, IMetaTyped as MetaTyped, IMetaTypedValue as MetaTypedValue, IWrappedValue as WrappedValue, } from './INormalValue'; | ||
export { INormalValue as NormalValue, IIdentified as Identified, IMetaTyped as MetaTyped, IMetaTypedValue as MetaTypedValue, IWrappedValue as WrappedValue, ITyped as Typed, ITypedValue as TypedValue, IMeted as Meted, IMetedValue as MetedValue, } from './INormalValue'; | ||
export { IFn as Fn, IUnaryFunction as UnaryFunction, IUnaryFn as UnaryFn, ICallable as Callable, } from './IFunction'; | ||
@@ -30,0 +30,0 @@ export { IMetadataProvider as MetadataProvider } from './IMetadata'; |
@@ -27,3 +27,3 @@ /** @module @qiwi/substrate-types */ | ||
export { IClientEventDto, IClientEventMeta, EnvironmentProfile, } from './IClientEventDto'; | ||
export { INormalValue, IIdentified, IMetaTyped, IMetaTypedValue, IWrappedValue, } from './INormalValue'; | ||
export { INormalValue, IIdentified, IMetaTyped, IMetaTypedValue, IWrappedValue, ITyped, ITypedValue, IMeted, IMetedValue, } from './INormalValue'; | ||
export { IFunction, IFn, IUnaryFunction, IUnaryFn, ICallable, } from './IFunction'; | ||
@@ -30,0 +30,0 @@ export { IMetadataProvider } from './IMetadata'; |
@@ -9,7 +9,12 @@ import { IAnyMap } from './IAnyMap'; | ||
}; | ||
export interface IMetaTyped<T = any, M extends IAnyMap = IAnyMap> { | ||
export declare type ITyped<T = any> = { | ||
type: T; | ||
}; | ||
export declare type ITypedValue<V = any, T = any> = IWrappedValue<V, ITyped<T>>; | ||
export declare type IMeted<M extends IAnyMap = IAnyMap> = { | ||
meta: M; | ||
} | ||
}; | ||
export declare type IMetedValue<V = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMeted<M>>; | ||
export declare type IMetaTyped<T = any, M extends IAnyMap = IAnyMap> = ITyped<T> & IMeted<M>; | ||
export declare type IMetaTypedValue<V = any, T = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMetaTyped<T, M>>; | ||
export declare type INormalValue<V = any, T = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, [IMetaTyped<T, M>, IIdentified]>; |
@@ -65,2 +65,6 @@ /** @module @qiwi/substrate-types */ | ||
IWrappedValue as WrappedValue, | ||
ITyped as Typed, | ||
ITypedValue as TypedValue, | ||
IMeted as Meted, | ||
IMetedValue as MetedValue, | ||
} from './INormalValue' | ||
@@ -67,0 +71,0 @@ export { |
@@ -65,2 +65,6 @@ /** @module @qiwi/substrate-types */ | ||
IWrappedValue, | ||
ITyped, | ||
ITypedValue, | ||
IMeted, | ||
IMetedValue, | ||
} from './INormalValue' | ||
@@ -67,0 +71,0 @@ export { |
@@ -16,7 +16,16 @@ import { IAnyMap } from './IAnyMap' | ||
export interface IMetaTyped<T=any, M extends IAnyMap = IAnyMap> { | ||
export type ITyped<T=any> = { | ||
type: T | ||
} | ||
export type ITypedValue<V=any, T=any> = IWrappedValue<V, ITyped<T>> | ||
export type IMeted<M extends IAnyMap = IAnyMap> = { | ||
meta: M | ||
} | ||
export type IMetedValue<V=any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMeted<M>> | ||
export type IMetaTyped<T=any, M extends IAnyMap = IAnyMap> = ITyped<T> & IMeted<M> | ||
export type IMetaTypedValue< | ||
@@ -23,0 +32,0 @@ V=any, |
declare module '@qiwi/substrate-types/target/es5/IAnyMap' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -10,3 +10,3 @@ export type IAnyMap = { | ||
declare module '@qiwi/substrate-types/target/es5/ILogger' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -34,3 +34,3 @@ export type ILoggerMethod = (...args: any[]) => void; | ||
declare module '@qiwi/substrate-types/target/es5/IClientEventDto' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -65,3 +65,3 @@ import { LogLevel } from '@qiwi/substrate-types/target/es5/ILogger'; | ||
declare module '@qiwi/substrate-types/target/es5/ICloneable' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -73,3 +73,3 @@ export interface ICloneable<T> { | ||
declare module '@qiwi/substrate-types/target/es5/ICollection' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -87,3 +87,3 @@ export type ICollectionItem = any; | ||
declare module '@qiwi/substrate-types/target/es5/IConfig' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -102,3 +102,3 @@ export type TConfigKey = string; | ||
declare module '@qiwi/substrate-types/target/es5/IConfigurable' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -111,3 +111,3 @@ export interface IConfigurable { | ||
declare module '@qiwi/substrate-types/target/es5/IConstructor' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -122,3 +122,3 @@ export type Abstract<T = {}> = Function & { | ||
declare module '@qiwi/substrate-types/target/es5/ICurrency' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -134,3 +134,3 @@ export type ICurrency = string; | ||
declare module '@qiwi/substrate-types/target/es5/IEventEmitter' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -159,3 +159,3 @@ export type IEventListener = (...args: any[]) => void; | ||
declare module '@qiwi/substrate-types/target/es5/IPromise' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -234,3 +234,3 @@ import { IConstructor } from '@qiwi/substrate-types/target/es5/IConstructor'; | ||
declare module '@qiwi/substrate-types/target/es5/IIterable' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -260,3 +260,3 @@ export interface IIteratorResult { | ||
declare module '@qiwi/substrate-types/target/es5/IMiddleware' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -293,3 +293,3 @@ export interface IRequest { | ||
declare module '@qiwi/substrate-types/target/es5/IMoney' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -323,6 +323,11 @@ import { ICurrency } from '@qiwi/substrate-types/target/es5/ICurrency'; | ||
}; | ||
export interface IMetaTyped<T = any, M extends IAnyMap = IAnyMap> { | ||
export type ITyped<T = any> = { | ||
type: T; | ||
}; | ||
export type ITypedValue<V = any, T = any> = IWrappedValue<V, ITyped<T>>; | ||
export type IMeted<M extends IAnyMap = IAnyMap> = { | ||
meta: M; | ||
} | ||
}; | ||
export type IMetedValue<V = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMeted<M>>; | ||
export type IMetaTyped<T = any, M extends IAnyMap = IAnyMap> = ITyped<T> & IMeted<M>; | ||
export type IMetaTypedValue<V = any, T = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, IMetaTyped<T, M>>; | ||
@@ -340,3 +345,3 @@ export type INormalValue<V = any, T = any, M extends IAnyMap = IAnyMap> = IWrappedValue<V, [IMetaTyped<T, M>, IIdentified]>; | ||
declare module '@qiwi/substrate-types/target/es5/IStringMap' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -348,3 +353,3 @@ export type IStringMap = { | ||
declare module '@qiwi/substrate-types/target/es5/IUtilGet' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -358,3 +363,3 @@ export type TUtilGetPath = Array<string | number> | string; | ||
declare module '@qiwi/substrate-types/target/es5/IUtilSet' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -367,3 +372,3 @@ export type TUtilSetPath = Array<string | number> | string; | ||
declare module '@qiwi/substrate-types/target/es5/IUtilEach' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -375,3 +380,3 @@ export type TUtilEachCollection = any[] | object; | ||
declare module '@qiwi/substrate-types/target/es5/IUtilMap' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -383,3 +388,3 @@ export type TUtilMapCollection = any[] | object; | ||
declare module '@qiwi/substrate-types/target/es5/IStorage' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -399,3 +404,3 @@ export type TStorageKey = string; | ||
declare module '@qiwi/substrate-types/target/es5/IStack' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -416,3 +421,3 @@ import { ICollection } from '@qiwi/substrate-types/target/es5/ICollection'; | ||
declare module '@qiwi/substrate-types/target/es5/TPredicate' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -422,3 +427,3 @@ export type TPredicate = (...args: any[]) => boolean; | ||
declare module '@qiwi/substrate-types/target/es5/export' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -449,3 +454,3 @@ export { IStringMap } from '@qiwi/substrate-types/target/es5/IStringMap'; | ||
export { IClientEventDto, IClientEventMeta, EnvironmentProfile, } from '@qiwi/substrate-types/target/es5/IClientEventDto'; | ||
export { INormalValue, IIdentified, IMetaTyped, IMetaTypedValue, IWrappedValue, } from '@qiwi/substrate-types/target/es5/INormalValue'; | ||
export { INormalValue, IIdentified, IMetaTyped, IMetaTypedValue, IWrappedValue, ITyped, ITypedValue, IMeted, IMetedValue, } from '@qiwi/substrate-types/target/es5/INormalValue'; | ||
export { IFunction, IFn, IUnaryFunction, IUnaryFn, ICallable, } from '@qiwi/substrate-types/target/es5/IFunction'; | ||
@@ -458,3 +463,3 @@ export { IMetadataProvider } from '@qiwi/substrate-types/target/es5/IMetadata'; | ||
declare module '@qiwi/substrate-types/target/es5/IPool' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -488,3 +493,3 @@ import { IPromise } from '@qiwi/substrate-types/target/es5/export'; | ||
declare module '@qiwi/substrate-types/target/es5/aliases' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -515,3 +520,3 @@ export { IStringMap as StringMap } from '@qiwi/substrate-types/target/es5/IStringMap'; | ||
export { IClientEventDto as ClientEventDto, IClientEventMeta as ClientEventMeta, EnvironmentProfile, } from '@qiwi/substrate-types/target/es5/IClientEventDto'; | ||
export { INormalValue as NormalValue, IIdentified as Identified, IMetaTyped as MetaTyped, IMetaTypedValue as MetaTypedValue, IWrappedValue as WrappedValue, } from '@qiwi/substrate-types/target/es5/INormalValue'; | ||
export { INormalValue as NormalValue, IIdentified as Identified, IMetaTyped as MetaTyped, IMetaTypedValue as MetaTypedValue, IWrappedValue as WrappedValue, ITyped as Typed, ITypedValue as TypedValue, IMeted as Meted, IMetedValue as MetedValue, } from '@qiwi/substrate-types/target/es5/INormalValue'; | ||
export { IFn as Fn, IUnaryFunction as UnaryFunction, IUnaryFn as UnaryFn, ICallable as Callable, } from '@qiwi/substrate-types/target/es5/IFunction'; | ||
@@ -530,3 +535,3 @@ export { IMetadataProvider as MetadataProvider } from '@qiwi/substrate-types/target/es5/IMetadata'; | ||
declare module '@qiwi/substrate-types/target/es5/index' { | ||
/** @qiwi/substrate-types */ | ||
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
@@ -533,0 +538,0 @@ export * from '@qiwi/substrate-types/target/es5/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
149576
26
3110