@qiwi/substrate-types
Advanced tools
Comparing version 1.42.0 to 1.43.0
@@ -0,1 +1,8 @@ | ||
# @qiwi/substrate-types [1.43.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.42.0...@qiwi/substrate-types@1.43.0) (2020-07-07) | ||
### Features | ||
* **types:** add recursive partial helper ([1f947e3](https://github.com/qiwi/substrate/commit/1f947e358576a5e6c15a26a890ce714e8d5124d7)) | ||
# @qiwi/substrate-types [1.42.0](https://github.com/qiwi/substrate/compare/@qiwi/substrate-types@1.41.0...@qiwi/substrate-types@1.42.0) (2020-07-07) | ||
@@ -2,0 +9,0 @@ |
@@ -486,2 +486,8 @@ /** | ||
declare export type ExtendsOrNever<T, E> = Extends<T, E, T, empty>; | ||
declare export type RecursivePartial<T> = $ObjMapi< | ||
T, | ||
<P>( | ||
P | ||
) => /* Flow doesn't support conditional types, use `$Call` utility type */ any | ||
>; | ||
} | ||
@@ -488,0 +494,0 @@ |
@@ -1,1 +0,1 @@ | ||
{"name":"@qiwi/substrate-types","version":"1.42.0","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":"26.0.3","@types/lodash":"4.14.157","@types/node":"14.0.14","@types/parsimmon":"1.10.2","@types/underscore":"1.10.2","axios":"0.19.2","bluebird":"3.7.2","conf":"6.2.4","config":"3.3.1","dtslint":"3.6.12","lodash":"4.17.15","ts-loader":"7.0.5","ts-node":"8.10.2","ts-to-flow":"0.0.3","typedoc":"0.17.8","typedoc-plugin-external-module-name":"4.0.3","typescript":"3.9.5","underscore":"1.10.2","cross-fetch":"3.0.5","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.43.0","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":"26.0.4","@types/lodash":"4.14.157","@types/node":"14.0.18","@types/parsimmon":"1.10.2","@types/underscore":"1.10.4","axios":"0.19.2","bluebird":"3.7.2","conf":"7.0.1","config":"3.3.1","dtslint":"3.6.12","lodash":"4.17.15","ts-loader":"7.0.5","ts-node":"8.10.2","ts-to-flow":"0.0.3","typedoc":"0.17.8","typedoc-plugin-external-module-name":"4.0.3","typescript":"3.9.6","underscore":"1.10.2","cross-fetch":"3.0.5","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":{}} |
@@ -9,1 +9,4 @@ export declare type UnionToIntersection<U> = ((U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never); | ||
export declare type ExtendsOrNever<T, E> = Extends<T, E, T, never>; | ||
export declare type RecursivePartial<T> = { | ||
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P]; | ||
}; |
@@ -9,1 +9,4 @@ export declare type UnionToIntersection<U> = ((U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never); | ||
export declare type ExtendsOrNever<T, E> = Extends<T, E, T, never>; | ||
export declare type RecursivePartial<T> = { | ||
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P]; | ||
}; |
@@ -18,1 +18,9 @@ export type UnionToIntersection<U> = ((U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never) | ||
export type ExtendsOrNever<T, E> = Extends<T, E, T, never> | ||
// https://stackoverflow.com/a/51365037 | ||
export type RecursivePartial<T> = { | ||
[P in keyof T]?: | ||
T[P] extends (infer U)[] ? RecursivePartial<U>[] : | ||
T[P] extends object ? RecursivePartial<T[P]> : | ||
T[P]; | ||
}; |
@@ -332,2 +332,5 @@ declare module '@qiwi/substrate-types/target/es5/IAnyMap' { | ||
export type ExtendsOrNever<T, E> = Extends<T, E, T, never>; | ||
export type RecursivePartial<T> = { | ||
[P in keyof T]?: T[P] extends (infer U)[] ? RecursivePartial<U>[] : T[P] extends object ? RecursivePartial<T[P]> : T[P]; | ||
}; | ||
} | ||
@@ -334,0 +337,0 @@ declare module '@qiwi/substrate-types/target/es5/INormalValue' { |
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
163711
3377