@qiwi/substrate-types
Advanced tools
Comparing version 1.30.1 to 1.31.0
@@ -0,1 +1,11 @@ | ||
# @qiwi/substrate-types [1.31.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.30.1...@qiwi/substrate-types@1.31.0) (2020-03-30) | ||
### Features | ||
* **types:** add Callable alias for Fn ([95be9d1](https://github.com/qiwi/substrate/commit/95be9d10f89fbd71361af09b2e3ea30b3715e2d5)) | ||
* **types:** add Extends condition helper ([25c66d4](https://github.com/qiwi/substrate/commit/25c66d4a04539e733a5fe2d440e5160b0f2cd3ed)) | ||
* **types:** add IFunction and UnaryFn ([7f71cd8](https://github.com/qiwi/substrate/commit/7f71cd8cfa778d4982655b0b9404ac0a6ec5eaef)) | ||
* **types:** add PrependTuple helper ([b4c9370](https://github.com/qiwi/substrate/commit/b4c93702ecbecbbc08fb9638b7ea99931884759d)) | ||
## @qiwi/substrate-types [1.30.1](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.30.0...@qiwi/substrate-types@1.30.1) (2020-03-19) | ||
@@ -2,0 +12,0 @@ |
{ | ||
"name": "@qiwi/substrate-types", | ||
"version": "1.30.1", | ||
"version": "1.31.0", | ||
"main": "target/es5/index.js", | ||
@@ -47,3 +47,3 @@ "source": "target/ts/index.ts", | ||
"@types/lodash": "^4.14.149", | ||
"@types/node": "^13.9.2", | ||
"@types/node": "^13.9.5", | ||
"@types/parsimmon": "^1.10.1", | ||
@@ -54,12 +54,12 @@ "@types/underscore": "^1.9.4", | ||
"conf": "^6.2.1", | ||
"config": "^3.3.0", | ||
"config": "^3.3.1", | ||
"dts-generator": "^3.0.0", | ||
"dtslint": "^3.3.0", | ||
"dtslint": "^3.4.0", | ||
"flowgen": "^1.10.0", | ||
"lodash": "^4.17.15", | ||
"replace-in-file": "^5.0.2", | ||
"ts-loader": "^6.2.1", | ||
"ts-node": "^8.7.0", | ||
"ts-loader": "^6.2.2", | ||
"ts-node": "^8.8.1", | ||
"ts-to-flow": "^0.0.3", | ||
"typedoc": "0.17.1", | ||
"typedoc": "0.17.3", | ||
"typedoc-plugin-external-module-name": "3.0.0", | ||
@@ -66,0 +66,0 @@ "typescript": "3.8.3", |
@@ -28,1 +28,2 @@ /** @module @qiwi/substrate-types */ | ||
export { INormalValue as NormalValue, IIdentified as Identified, IMetaTyped as MetaTyped, IMetaTypedValue as MetaTypedValue, IWrappedValue as WrappedValue } from './INormalValue'; | ||
export { IFn as Fn, IUnaryFunction as UnaryFunction, IUnaryFn as UnaryFn, ICallable as Callable } from './IFunction'; |
@@ -28,1 +28,2 @@ /** @module @qiwi/substrate-types */ | ||
export { INormalValue, IIdentified, IMetaTyped, IMetaTypedValue, IWrappedValue } from './INormalValue'; | ||
export { IFunction, IFn, IUnaryFunction, IUnaryFn, ICallable } from './IFunction'; |
@@ -5,2 +5,5 @@ export declare type UnionToIntersection<U> = ((U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never); | ||
}, U extends string>(x: T): T; | ||
export declare type enumType<T> = T[keyof T]; | ||
export declare type EnumType<T> = T[keyof T]; | ||
export declare type PrependTuple<A, T extends Array<any>> = (((a: A, ...b: T) => void) extends (...a: infer I) => void ? I : []); | ||
export declare type Extends<T, E, R1, R2> = T extends E ? R1 : R2; | ||
export declare type ExtendsOrNever<T, E> = Extends<T, E, T, never>; |
@@ -28,1 +28,2 @@ /** @module @qiwi/substrate-types */ | ||
export { INormalValue as NormalValue, IIdentified as Identified, IMetaTyped as MetaTyped, IMetaTypedValue as MetaTypedValue, IWrappedValue as WrappedValue } from './INormalValue'; | ||
export { IFn as Fn, IUnaryFunction as UnaryFunction, IUnaryFn as UnaryFn, ICallable as Callable } from './IFunction'; |
@@ -28,1 +28,2 @@ /** @module @qiwi/substrate-types */ | ||
export { INormalValue, IIdentified, IMetaTyped, IMetaTypedValue, IWrappedValue } from './INormalValue'; | ||
export { IFunction, IFn, IUnaryFunction, IUnaryFn, ICallable } from './IFunction'; |
@@ -5,2 +5,5 @@ export declare type UnionToIntersection<U> = ((U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never); | ||
}, U extends string>(x: T): T; | ||
export declare type enumType<T> = T[keyof T]; | ||
export declare type EnumType<T> = T[keyof T]; | ||
export declare type PrependTuple<A, T extends Array<any>> = (((a: A, ...b: T) => void) extends (...a: infer I) => void ? I : []); | ||
export declare type Extends<T, E, R1, R2> = T extends E ? R1 : R2; | ||
export declare type ExtendsOrNever<T, E> = Extends<T, E, T, never>; |
@@ -66,1 +66,8 @@ /** @module @qiwi/substrate-types */ | ||
} from './INormalValue' | ||
export { | ||
IFn as Fn, | ||
IUnaryFunction as UnaryFunction, | ||
IUnaryFn as UnaryFn, | ||
ICallable as Callable | ||
} from './IFunction' |
@@ -66,1 +66,8 @@ /** @module @qiwi/substrate-types */ | ||
} from './INormalValue' | ||
export { | ||
IFunction, | ||
IFn, | ||
IUnaryFunction, | ||
IUnaryFn, | ||
ICallable | ||
} from './IFunction' |
@@ -7,2 +7,12 @@ export type UnionToIntersection<U> = ((U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never) | ||
export type enumType<T> = T[keyof T] | ||
export type EnumType<T> = T[keyof T] | ||
// Util to prepend a value to a Tuple from: https://stackoverflow.com/a/54607819/5308589 | ||
export type PrependTuple<A, T extends Array<any>> = | ||
(((a: A, ...b: T) => void) extends (...a: infer I) => void ? I : []) | ||
export type Extends<T, E, R1, R2> = T extends E | ||
? R1 | ||
: R2 | ||
export type ExtendsOrNever<T, E> = Extends<T, E, T, never> |
@@ -131,2 +131,9 @@ declare module '@qiwi/substrate-types/target/es5/IAnyMap' { | ||
} | ||
declare module '@qiwi/substrate-types/target/es5/IFunction' { | ||
export type IFunction<A extends any[] = any[], R = any> = (...args: A) => R; | ||
export type IFn<A extends any[] = any[], R = any> = IFunction<A, R>; | ||
export type ICallable<A extends any[] = any[], R = any> = IFunction<A, R>; | ||
export type IUnaryFunction<A = any, R = any> = (a: A) => R; | ||
export type IUnaryFn<A = any, R = any> = IUnaryFunction<A, R>; | ||
} | ||
declare module '@qiwi/substrate-types/target/es5/IPromise' { | ||
@@ -271,3 +278,6 @@ /** @qiwi/substrate-types */ | ||
}, U extends string>(x: T): T; | ||
export type enumType<T> = T[keyof T]; | ||
export type EnumType<T> = T[keyof T]; | ||
export type PrependTuple<A, T extends Array<any>> = (((a: A, ...b: T) => void) extends (...a: infer I) => void ? I : []); | ||
export type Extends<T, E, R1, R2> = T extends E ? R1 : R2; | ||
export type ExtendsOrNever<T, E> = Extends<T, E, T, never>; | ||
} | ||
@@ -392,2 +402,3 @@ declare module '@qiwi/substrate-types/target/es5/INormalValue' { | ||
export { INormalValue, IIdentified, IMetaTyped, IMetaTypedValue, IWrappedValue } from '@qiwi/substrate-types/target/es5/INormalValue'; | ||
export { IFunction, IFn, IUnaryFunction, IUnaryFn, ICallable } from '@qiwi/substrate-types/target/es5/IFunction'; | ||
} | ||
@@ -451,2 +462,3 @@ declare module '@qiwi/substrate-types/target/es5/IPool' { | ||
export { INormalValue as NormalValue, IIdentified as Identified, IMetaTyped as MetaTyped, IMetaTypedValue as MetaTypedValue, IWrappedValue as WrappedValue } 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'; | ||
} | ||
@@ -453,0 +465,0 @@ declare module '@qiwi/substrate-types/target/es5/index' { |
@@ -186,2 +186,10 @@ /** | ||
declare module "@qiwi/substrate-types/target/es5/IFunction" { | ||
declare export type IFunction<A: any[] = any[], R = any> = (...args: A) => R; | ||
declare export type IFn<A: any[] = any[], R = any> = IFunction<A, R>; | ||
declare export type ICallable<A: any[] = any[], R = any> = IFunction<A, R>; | ||
declare export type IUnaryFunction<A = any, R = any> = (a: A) => R; | ||
declare export type IUnaryFn<A = any, R = any> = IUnaryFunction<A, R>; | ||
} | ||
declare module "@qiwi/substrate-types/target/es5/IPromise" { | ||
@@ -377,3 +385,14 @@ import type { IConstructor } from "@qiwi/substrate-types/target/es5/IConstructor"; | ||
declare export type enumType<T> = $ElementType<T, $Keys<T>>; | ||
declare export type EnumType<T> = $ElementType<T, $Keys<T>>; | ||
declare export type PrependTuple< | ||
A, | ||
T: Array<any> | ||
> = /* Flow doesn't support conditional types, use `$Call` utility type */ any; | ||
declare export type Extends< | ||
T, | ||
E, | ||
R1, | ||
R2 | ||
> = /* Flow doesn't support conditional types, use `$Call` utility type */ any; | ||
declare export type ExtendsOrNever<T, E> = Extends<T, E, T, empty>; | ||
} | ||
@@ -632,2 +651,10 @@ | ||
} from "@qiwi/substrate-types/target/es5/INormalValue"; | ||
declare export { | ||
IFunction, | ||
IFn, | ||
IUnaryFunction, | ||
IUnaryFn, | ||
ICallable | ||
} from "@qiwi/substrate-types/target/es5/IFunction"; | ||
} | ||
@@ -754,2 +781,9 @@ | ||
} from "@qiwi/substrate-types/target/es5/INormalValue"; | ||
declare export { | ||
IFn as Fn, | ||
IUnaryFunction as UnaryFunction, | ||
IUnaryFn as UnaryFn, | ||
ICallable as Callable | ||
} from "@qiwi/substrate-types/target/es5/IFunction"; | ||
} | ||
@@ -756,0 +790,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
131920
215
2801