@qiwi/substrate-types
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -0,1 +1,8 @@ | ||
# [@qiwi/substrate-types-v1.7.0](https://github.com/qiwi/substrate/compare/v1.6.0...v1.7.0) (2019-03-26) | ||
### Features | ||
* **types:** add TUtilEach, TUtilMap, TUtilSet types ([deab615](https://github.com/qiwi/substrate/commit/deab615)) | ||
# [@qiwi/substrate-types-v1.6.0](https://github.com/qiwi/substrate/compare/v1.5.0...v1.6.0) (2019-03-26) | ||
@@ -2,0 +9,0 @@ |
@@ -6,2 +6,5 @@ export { IStringMap } from './IStringMap'; | ||
export { TUtilGet } from './IUtilGet'; | ||
export { TUtilSet } from './IUtilSet'; | ||
export { TUtilEach } from './IUtilEach'; | ||
export { TUtilMap } from './IUtilMap'; | ||
export { ICloneable } from './ICloneable'; |
@@ -6,2 +6,5 @@ export { IStringMap } from './IStringMap'; | ||
export { TUtilGet } from './IUtilGet'; | ||
export { TUtilSet } from './IUtilSet'; | ||
export { TUtilEach } from './IUtilEach'; | ||
export { TUtilMap } from './IUtilMap'; | ||
export { ICloneable } from './ICloneable'; |
@@ -6,2 +6,5 @@ export { IStringMap } from './IStringMap' | ||
export { TUtilGet } from './IUtilGet' | ||
export { TUtilSet } from './IUtilSet' | ||
export { TUtilEach } from './IUtilEach' | ||
export { TUtilMap } from './IUtilMap' | ||
export { ICloneable } from './ICloneable' |
{ | ||
"name": "@qiwi/substrate-types", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"main": "lib/es5/index.js", | ||
@@ -38,7 +38,10 @@ "types": "typings/index.d.ts", | ||
"@types/jest": "^24.0.11", | ||
"@types/lodash": "^4.14.123", | ||
"@types/node": "^11.11.3", | ||
"@types/lodash": "^4.14.123", | ||
"@types/parsimmon": "^1.10.0", | ||
"@types/underscore": "^1.8.13", | ||
"dts-generator": "^3.0.0", | ||
"dtslint": "^0.5.5", | ||
"flowgen": "^1.7.0", | ||
"lodash": "^4.17.11", | ||
"replace-in-file": "^3.4.4", | ||
@@ -49,4 +52,4 @@ "ts-loader": "^5.3.3", | ||
"typescript": "3.3.3333", | ||
"dtslint": "^0.5.5" | ||
"underscore": "^1.9.1" | ||
} | ||
} |
@@ -42,2 +42,7 @@ declare module '@qiwi/substrate-types/lib/es5/IAnyMap' { | ||
} | ||
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/lib/es5/IUtilGet' { | ||
@@ -50,2 +55,13 @@ type TUtilGetPath = Array<string | number> | string; | ||
} | ||
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/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/lib/es5/index' { | ||
@@ -57,2 +73,5 @@ export { IStringMap } from '@qiwi/substrate-types/lib/es5/IStringMap'; | ||
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'; | ||
@@ -59,0 +78,0 @@ } |
@@ -53,2 +53,14 @@ /** | ||
} | ||
declare module "@qiwi/substrate-types/lib/es5/IUtilEach" { | ||
declare type TUtilEachCollection = any[] | { [key: string]: any }; | ||
declare type TUtilEachHandler = ( | ||
value: any, | ||
key?: string | number, | ||
collection?: TUtilEachCollection | ||
) => void; | ||
declare type TUtilEach = ( | ||
collection: TUtilEachCollection, | ||
handler: TUtilEachHandler | ||
) => TUtilEachCollection; | ||
} | ||
declare module "@qiwi/substrate-types/lib/es5/IUtilGet" { | ||
@@ -65,2 +77,24 @@ declare type TUtilGetPath = Array<string | number> | string; | ||
} | ||
declare module "@qiwi/substrate-types/lib/es5/IUtilMap" { | ||
declare type TUtilMapCollection = any[] | { [key: string]: any }; | ||
declare type TUtilMapHandler = ( | ||
value: any, | ||
key?: string | number, | ||
collection?: TUtilMapCollection | ||
) => any; | ||
declare type TUtilMap = ( | ||
collection: TUtilMapCollection, | ||
handler: TUtilMapHandler | ||
) => any[]; | ||
} | ||
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 = ( | ||
obj: TUtilSetObject, | ||
path: TUtilSetPath, | ||
value: TUtilSetValue | ||
) => void; | ||
} | ||
declare module "@qiwi/substrate-types/lib/es5/index" { | ||
@@ -83,2 +117,8 @@ declare export { IStringMap } from "@qiwi/substrate-types/lib/es5/IStringMap"; | ||
declare export { TUtilSet } from "@qiwi/substrate-types/lib/es5/IUtilSet"; | ||
declare export { TUtilEach } from "@qiwi/substrate-types/lib/es5/IUtilEach"; | ||
declare export { TUtilMap } from "@qiwi/substrate-types/lib/es5/IUtilMap"; | ||
declare export { ICloneable } from "@qiwi/substrate-types/lib/es5/ICloneable"; | ||
@@ -85,0 +125,0 @@ } |
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
22590
75
396
15