ts-essentials
Advanced tools
Comparing version 7.0.1 to 7.0.2
@@ -17,2 +17,2 @@ "use strict"; | ||
exports.noop = noop; | ||
//# sourceMappingURL=functions.js.map | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZnVuY3Rpb25zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vbGliL2Z1bmN0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLE1BQWEsb0JBQXFCLFNBQVEsS0FBSztJQUM3QyxZQUFZLEtBQVk7UUFDdEIsS0FBSyxDQUFDLHFCQUFxQixLQUFLLEVBQUUsQ0FBQyxDQUFDO0lBQ3RDLENBQUM7Q0FDRjtBQUpELG9EQUlDO0FBRUQsU0FBZ0IsTUFBTSxDQUFDLFNBQWMsRUFBRSxNQUFjLDZCQUE2QjtJQUNoRixJQUFJLENBQUMsU0FBUyxFQUFFO1FBQ2QsTUFBTSxJQUFJLEtBQUssQ0FBQyxtQkFBbUIsR0FBRyxHQUFHLENBQUMsQ0FBQztLQUM1QztBQUNILENBQUM7QUFKRCx3QkFJQztBQUVELFNBQWdCLElBQUksQ0FBQyxHQUFHLEtBQWdCLElBQVMsQ0FBQztBQUFsRCxvQkFBa0QiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgY2xhc3MgVW5yZWFjaGFibGVDYXNlRXJyb3IgZXh0ZW5kcyBFcnJvciB7XG4gIGNvbnN0cnVjdG9yKHZhbHVlOiBuZXZlcikge1xuICAgIHN1cGVyKGBVbnJlYWNoYWJsZSBjYXNlOiAke3ZhbHVlfWApO1xuICB9XG59XG5cbmV4cG9ydCBmdW5jdGlvbiBhc3NlcnQoY29uZGl0aW9uOiBhbnksIG1zZzogc3RyaW5nID0gXCJubyBhZGRpdGlvbmFsIGluZm8gcHJvdmlkZWRcIik6IGFzc2VydHMgY29uZGl0aW9uIHtcbiAgaWYgKCFjb25kaXRpb24pIHtcbiAgICB0aHJvdyBuZXcgRXJyb3IoXCJBc3NlcnRpb24gRXJyb3I6IFwiICsgbXNnKTtcbiAgfVxufVxuXG5leHBvcnQgZnVuY3Rpb24gbm9vcCguLi5fYXJnczogdW5rbm93bltdKTogdm9pZCB7fVxuIl19 |
@@ -7,2 +7,2 @@ "use strict"; | ||
__export(require("./functions")); | ||
//# sourceMappingURL=index.js.map | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFDQSxpQ0FBNEIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tIFwiLi90eXBlc1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vZnVuY3Rpb25zXCI7XG4iXX0= |
@@ -229,2 +229,4 @@ /** Essentials */ | ||
export declare type RequiredKeys<T> = Exclude<keyof T, OptionalKeys<T>>; | ||
/** Gets keys of properties of given type in object type */ | ||
export declare type PickKeys<T, P> = Exclude<keyof PickProperties<T, P>, undefined>; | ||
/** Recursively omit deep properties */ | ||
@@ -231,0 +233,0 @@ export declare type DeepOmit<T extends DeepOmitModify<Filter>, Filter> = T extends Builtin |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=types.js.map | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9saWIvdHlwZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBFc3NlbnRpYWxzICovXG5leHBvcnQgdHlwZSBQcmltaXRpdmUgPSBzdHJpbmcgfCBudW1iZXIgfCBib29sZWFuIHwgYmlnaW50IHwgc3ltYm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0.2", | ||
"main": "dist/index.js", | ||
@@ -22,3 +22,3 @@ "types": "dist/index.d.ts", | ||
"scripts": { | ||
"build": "rm -rf ./dist && tsc -p tsconfig.prod.json --outDir ./dist", | ||
"build": "rimraf ./dist && tsc -p tsconfig.prod.json --outDir ./dist", | ||
"formatDeclarations": "prettier --ignore-path *.js --write dist/*.d.ts", | ||
@@ -40,4 +40,5 @@ "prepublishOnly": "yarn test && yarn build && yarn formatDeclarations", | ||
"prettier": "^1.19.1", | ||
"rimraf": "^3.0.2", | ||
"typescript": "^3.7.2" | ||
} | ||
} |
@@ -52,2 +52,3 @@ <p align="center"> | ||
- [RequiredKeys](#RequiredKeys) | ||
- [PickKeys](#pickkeys) | ||
- [UnionToIntersection](#UnionToIntersection) | ||
@@ -227,3 +228,4 @@ - [Opaque types](#Opaque-types) | ||
const foo: Foo = ({ a: 1, b: "b" }(foo as Writable<typeof foo>).a = 42); | ||
const foo: Foo = { a: 1, b: "b" }; | ||
(foo as Writable<typeof foo>).a = 42; | ||
``` | ||
@@ -576,2 +578,21 @@ | ||
### PickKeys | ||
Gets keys of properties of given type in object type. | ||
```typescript | ||
type T = { | ||
a: number; | ||
b?: string; | ||
c: string | undefined; | ||
d: string; | ||
}; | ||
type Result1 = PickKeys<T, string>; | ||
// Result1: | ||
// "d" | ||
type Result2 = PickKeys<T, string | undefined>; | ||
// Result2: | ||
// "b" | "c" | "d" | ||
``` | ||
### UnionToIntersection | ||
@@ -578,0 +599,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
68066
413
874
6
9