@waiting/shared-types
Advanced tools
Comparing version 14.4.2 to 15.0.0
@@ -5,3 +5,3 @@ /** | ||
* | ||
* @version 14.4.1 | ||
* @version 14.4.2 | ||
* @author waiting | ||
@@ -8,0 +8,0 @@ * @license MIT |
@@ -35,3 +35,3 @@ export declare type ToTuple<T> = T extends any[] ? T : any[]; | ||
*/ | ||
export declare type Invert<T extends Record<PropertyKey, PropertyKey>> = { | ||
export declare type Invert<T extends Record<string, string>> = { | ||
[K in T[KnownKeys<T> & (keyof T)]]: KeyFromValue<T, K>; | ||
@@ -48,3 +48,3 @@ }; | ||
export declare type EqualsExt<X, Y> = Equals<FormatIntersect<X>, FormatIntersect<Y>>; | ||
export declare type OverwriteNeverToUnknown<T extends any> = { | ||
export declare type OverwriteNeverToUnknown<T> = { | ||
[fld in keyof T]: T[fld] extends never ? unknown : T[fld]; | ||
@@ -51,0 +51,0 @@ }; |
@@ -5,5 +5,5 @@ export * from './alias'; | ||
export * from './npm-pkg'; | ||
export * from './union2tuple'; | ||
export * from './union'; | ||
export * from './stats'; | ||
export * from './tuple'; | ||
export * from './template-literal'; |
@@ -5,5 +5,5 @@ export * from './alias'; | ||
export * from './npm-pkg'; | ||
export * from './union2tuple'; | ||
export * from './union'; | ||
export * from './stats'; | ||
export * from './tuple'; | ||
export * from './template-literal'; |
@@ -16,3 +16,3 @@ /** Get the first element */ | ||
export declare type TypeAssert<T, A> = T extends A ? T : never; | ||
export declare type Overwrite<T, S extends any> = { | ||
export declare type Overwrite<T, S> = { | ||
[P in keyof T]: S[P]; | ||
@@ -19,0 +19,0 @@ }; |
{ | ||
"name": "@waiting/shared-types", | ||
"author": "waiting", | ||
"version": "14.4.2", | ||
"version": "15.0.0", | ||
"description": "shared typescript types", | ||
@@ -28,6 +28,6 @@ "keywords": [ | ||
"cross-env": "7", | ||
"typescript": ">=4.3.0" | ||
"typescript": ">=4.5.0" | ||
}, | ||
"engines": { | ||
"node": ">=12.13.0" | ||
"node": ">=14.16.0" | ||
}, | ||
@@ -37,3 +37,2 @@ "files": [ | ||
"rollup.config.js", | ||
"src/**/*.ts", | ||
"bin/*.js", | ||
@@ -50,3 +49,3 @@ "dist" | ||
"clean:lock": "rm package-lock.json -f", | ||
"cov": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc mocha --parallel=false", | ||
"cov": "cross-env TS_NODE_PROJECT=test/tsconfig.json c8 mocha --parallel=false", | ||
"lint": "eslint --fix --cache {src,test}/**/*.ts", | ||
@@ -65,30 +64,3 @@ "lint:nofix": "eslint --cache {src,test}/**/*.ts", | ||
}, | ||
"nyc": { | ||
"include": [ | ||
"src/**/*.ts" | ||
], | ||
"exclude": [ | ||
".githooks", | ||
"dist", | ||
"node_modules*", | ||
"src/bin", | ||
"src/domain.ts", | ||
"src/interface.ts", | ||
"test*", | ||
"**/node_modules*", | ||
"**/*.d.ts", | ||
"**/*.js" | ||
], | ||
"extension": [ | ||
".ts" | ||
], | ||
"reporter": [ | ||
"html", | ||
"json", | ||
"text", | ||
"text-summary" | ||
], | ||
"all": true | ||
}, | ||
"gitHead": "60f1ab7f58263f451bf12e34e7dd7405dbc87e96" | ||
"gitHead": "4c63f4bb3a0c4cf04d689f15c63f4a6acb54d508" | ||
} |
@@ -21,5 +21,5 @@ { | ||
"strictPropertyInitialization": false, | ||
"target": "ES2019", | ||
"target": "ES2021", | ||
"tsBuildInfoFile": ".vscode/.tsbuildinfo", | ||
"types" : ["node", "mocha"] | ||
"types" : ["mocha", "node"] | ||
}, | ||
@@ -26,0 +26,0 @@ "include": [ |
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
21941
28
603