@qiwi/substrate-types
Advanced tools
Comparing version 1.40.2 to 1.40.3
@@ -0,1 +1,8 @@ | ||
## @qiwi/substrate-types [1.40.3](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.40.2...@qiwi/substrate-types@1.40.3) (2020-05-24) | ||
### Performance Improvements | ||
* **package:** deps revision ([b87d46e](https://github.com/qiwi/substrate/commit/b87d46e871b69b9c1eb79a6f701db0130d4c169e)) | ||
## @qiwi/substrate-types [1.40.2](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.40.1...@qiwi/substrate-types@1.40.2) (2020-05-21) | ||
@@ -2,0 +9,0 @@ |
@@ -151,12 +151,14 @@ /** | ||
*/ | ||
declare export type Abstract<T = { ... }> = Function & { | ||
declare export type Abstract<T = { [key: string]: any }> = Function & { | ||
prototype: T, | ||
... | ||
}; | ||
declare export type IConstructor<T = { ... }, A: any[] = any[]> = ( | ||
...args: A | ||
) => T; | ||
declare export type IClass<T = { ... }> = Abstract<T> & IConstructor<T>; | ||
declare export type IConstructor< | ||
T = { [key: string]: any }, | ||
A: any[] = any[] | ||
> = (...args: A) => T; | ||
declare export type IClass<T = { [key: string]: any }> = Abstract<T> & | ||
IConstructor<T>; | ||
declare export type IConstructable< | ||
T = { ... }, | ||
T = { [key: string]: any }, | ||
A: any[] = any[] | ||
@@ -465,3 +467,3 @@ > = IConstructor<T, A>; | ||
V = any, | ||
W = { ... } | ||
W = Object | ||
> = /* Flow doesn't support conditional types, use `$Call` utility type */ any & { | ||
@@ -468,0 +470,0 @@ value: V, |
@@ -1,1 +0,1 @@ | ||
{"name":"@qiwi/substrate-types","version":"1.40.2","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":{"*":["target/es5/index.d.ts","src/test/ts/*"]}},"scripts":{"clean":"rm -rf target","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/","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","jest":"jest --config=jest.config.json","dtslint":"dtslint src/test/ts/libdef --localTs ../../node_modules/typescript/lib --expectOnly","aliasgen":"node -r esm ../../scripts/js/alias-gen.js","docs":"typedoc --readme README.md --tsconfig ./tsconfig.json ./src/main && touch ./docs/.nojekyll || exit 0"},"files":["README.md","CHANGELOG.md","typings","flow-typed","target"],"devDependencies":{"@qiwi/uniconfig":"3.3.1","@qiwi/libdefkit":"^1.0.2","@types/axios":"0.14.0","@types/bluebird":"3.5.32","@types/config":"0.0.36","@types/jest":"25.2.3","@types/lodash":"4.14.152","@types/node":"14.0.4","@types/parsimmon":"1.10.2","@types/underscore":"1.10.0","axios":"0.19.2","bluebird":"3.7.2","conf":"6.2.4","config":"3.3.1","dtslint":"3.6.4","lodash":"4.17.15","replace-in-file":"6.0.0","ts-loader":"7.0.4","ts-node":"8.10.1","ts-to-flow":"0.0.3","typedoc":"0.17.7","typedoc-plugin-external-module-name":"3.1.0","typescript":"3.9.3","underscore":"1.10.2","cross-fetch":"3.0.4","reflect-metadata":"0.1.13"},"dependencies":{},"peerDependencies":{},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/qiwi/substrate.git"},"keywords":[],"bugs":{"url":"https://github.com/qiwi/substrate/issues"},"optionalDependencies":{}} | ||
{"name":"@qiwi/substrate-types","version":"1.40.3","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":{"*":["target/es5/index.d.ts","src/test/ts/*"]}},"scripts":{"clean":"rm -rf target","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/","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","jest":"jest --config=jest.config.json","dtslint":"dtslint src/test/ts/libdef --localTs ../../node_modules/typescript/lib --expectOnly","aliasgen":"node -r esm ../../scripts/js/alias-gen.js","docs":"typedoc --readme README.md --tsconfig ./tsconfig.json ./src/main && touch ./docs/.nojekyll || exit 0"},"files":["README.md","CHANGELOG.md","typings","flow-typed","target"],"devDependencies":{"@qiwi/uniconfig":"3.3.1","@qiwi/libdefkit":"^1.0.2","@types/axios":"0.14.0","@types/bluebird":"3.5.32","@types/config":"0.0.36","@types/jest":"25.2.3","@types/lodash":"4.14.152","@types/node":"14.0.5","@types/parsimmon":"1.10.2","@types/underscore":"1.10.0","axios":"0.19.2","bluebird":"3.7.2","conf":"6.2.4","config":"3.3.1","dtslint":"3.6.4","lodash":"4.17.15","ts-loader":"7.0.4","ts-node":"8.10.1","ts-to-flow":"0.0.3","typedoc":"0.17.7","typedoc-plugin-external-module-name":"3.1.0","typescript":"3.9.3","underscore":"1.10.2","cross-fetch":"3.0.4","reflect-metadata":"0.1.13"},"dependencies":{},"peerDependencies":{},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/qiwi/substrate.git"},"keywords":[],"bugs":{"url":"https://github.com/qiwi/substrate/issues"},"optionalDependencies":{}} |
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
export declare type Abstract<T = {}> = Function & { | ||
export declare type Abstract<T = object> = Function & { | ||
prototype: T; | ||
}; | ||
export declare type IConstructor<T = {}, A extends any[] = any[]> = new (...args: A) => T; | ||
export declare type IClass<T = {}> = Abstract<T> & IConstructor<T>; | ||
export declare type IConstructable<T = {}, A extends any[] = any[]> = IConstructor<T, A>; | ||
export declare type IConstructor<T = object, A extends any[] = any[]> = new (...args: A) => T; | ||
export declare type IClass<T = object> = Abstract<T> & IConstructor<T>; | ||
export declare type IConstructable<T = object, A extends any[] = any[]> = IConstructor<T, A>; |
@@ -6,3 +6,3 @@ import { IAnyMap } from './IAnyMap'; | ||
} | ||
export declare type IWrappedValue<V = any, W = {}> = (W extends {}[] ? UnionToIntersection<W[number]> : W extends {} ? W : {}) & { | ||
export declare type IWrappedValue<V = any, W = Object> = (W extends object[] ? UnionToIntersection<W[number]> : W extends object ? W : object) & { | ||
value: V; | ||
@@ -9,0 +9,0 @@ }; |
/** @module @qiwi/substrate-types */ | ||
/** */ | ||
export declare type Abstract<T = {}> = Function & { | ||
export declare type Abstract<T = object> = Function & { | ||
prototype: T; | ||
}; | ||
export declare type IConstructor<T = {}, A extends any[] = any[]> = new (...args: A) => T; | ||
export declare type IClass<T = {}> = Abstract<T> & IConstructor<T>; | ||
export declare type IConstructable<T = {}, A extends any[] = any[]> = IConstructor<T, A>; | ||
export declare type IConstructor<T = object, A extends any[] = any[]> = new (...args: A) => T; | ||
export declare type IClass<T = object> = Abstract<T> & IConstructor<T>; | ||
export declare type IConstructable<T = object, A extends any[] = any[]> = IConstructor<T, A>; |
@@ -6,3 +6,3 @@ import { IAnyMap } from './IAnyMap'; | ||
} | ||
export declare type IWrappedValue<V = any, W = {}> = (W extends {}[] ? UnionToIntersection<W[number]> : W extends {} ? W : {}) & { | ||
export declare type IWrappedValue<V = any, W = Object> = (W extends object[] ? UnionToIntersection<W[number]> : W extends object ? W : object) & { | ||
value: V; | ||
@@ -9,0 +9,0 @@ }; |
@@ -5,3 +5,3 @@ export type UnionToIntersection<U> = ((U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never) | ||
// https://github.com/microsoft/TypeScript/issues/3192#issuecomment-265568398 | ||
export function mkenum<T extends {[index: string]: U}, U extends string> (x: T) { return x } | ||
export function mkenum<T extends {[index: string]: U}, U extends string> (x: T): T { return x } | ||
@@ -8,0 +8,0 @@ export type EnumType<T> = T[keyof T] |
@@ -5,8 +5,8 @@ /** @module @qiwi/substrate-types */ | ||
// https://github.com/microsoft/TypeScript/issues/17572 | ||
export type Abstract<T= {}> = Function & { prototype: T } | ||
export type Abstract<T= object> = Function & { prototype: T } | ||
export type IConstructor<T= {}, A extends any[] = any[]> = new (...args: A) => T | ||
export type IConstructor<T= object, A extends any[] = any[]> = new (...args: A) => T | ||
export type IClass<T= {}> = Abstract<T> & IConstructor<T> | ||
export type IClass<T= object> = Abstract<T> & IConstructor<T> | ||
export type IConstructable<T= {}, A extends any[] = any[]> = IConstructor<T, A> | ||
export type IConstructable<T= object, A extends any[] = any[]> = IConstructor<T, A> |
@@ -8,8 +8,8 @@ import { IAnyMap } from './IAnyMap' | ||
export type IWrappedValue<V=any, W={}> = | ||
(W extends {}[] | ||
export type IWrappedValue<V=any, W=Object> = | ||
(W extends object[] | ||
? UnionToIntersection<W[number]> | ||
: W extends {} | ||
: W extends object | ||
? W | ||
: {} | ||
: object | ||
) & {value: V} | ||
@@ -16,0 +16,0 @@ |
@@ -107,8 +107,8 @@ declare module '@qiwi/substrate-types/target/es5/IAnyMap' { | ||
/** */ | ||
export type Abstract<T = {}> = Function & { | ||
export type Abstract<T = object> = Function & { | ||
prototype: T; | ||
}; | ||
export type IConstructor<T = {}, A extends any[] = any[]> = new (...args: A) => T; | ||
export type IClass<T = {}> = Abstract<T> & IConstructor<T>; | ||
export type IConstructable<T = {}, A extends any[] = any[]> = IConstructor<T, A>; | ||
export type IConstructor<T = object, A extends any[] = any[]> = new (...args: A) => T; | ||
export type IClass<T = object> = Abstract<T> & IConstructor<T>; | ||
export type IConstructable<T = object, A extends any[] = any[]> = IConstructor<T, A>; | ||
} | ||
@@ -312,3 +312,3 @@ declare module '@qiwi/substrate-types/target/es5/ICurrency' { | ||
} | ||
export type IWrappedValue<V = any, W = {}> = (W extends {}[] ? UnionToIntersection<W[number]> : W extends {} ? W : {}) & { | ||
export type IWrappedValue<V = any, W = Object> = (W extends object[] ? UnionToIntersection<W[number]> : W extends object ? W : object) & { | ||
value: V; | ||
@@ -315,0 +315,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
153477
25
3162