type-fns 1.13.0 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ export declare const isKeyOf: <T extends Record<string, any>>(obj: T, key: PropertyKey) => key is keyof T;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isKeyOf = void 0;
4
+ const isKeyOf = (obj, key) => {
5
+ return key in obj;
6
+ };
7
+ exports.isKeyOf = isKeyOf;
8
+ //# sourceMappingURL=isKeyOf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isKeyOf.js","sourceRoot":"","sources":["../../src/checks/isKeyOf.ts"],"names":[],"mappings":";;;AAAO,MAAM,OAAO,GAAG,CACrB,GAAM,EACN,GAAgB,EACA,EAAE;IAClB,OAAO,GAAG,IAAI,GAAG,CAAC;AACpB,CAAC,CAAC;AALW,QAAA,OAAO,WAKlB"}
package/dist/index.d.ts CHANGED
@@ -14,3 +14,4 @@ export * from './companions/omit';
14
14
  export * from './companions/pick';
15
15
  export * from './types/Literalize';
16
16
  export * from './wrappers/withAssure';
17
+ export * from './checks/isKeyOf';
package/dist/index.js CHANGED
@@ -30,4 +30,5 @@ __exportStar(require("./companions/omit"), exports);
30
30
  __exportStar(require("./companions/pick"), exports);
31
31
  __exportStar(require("./types/Literalize"), exports);
32
32
  __exportStar(require("./wrappers/withAssure"), exports);
33
+ __exportStar(require("./checks/isKeyOf"), exports);
33
34
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,oDAAkC;AAClC,qDAAmC;AACnC,uDAAqC;AACrC,sDAAoC;AACpC,kDAAgC;AAChC,qDAAmC;AACnC,0DAAwC;AACxC,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,qDAAmC;AACnC,wDAAsC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,oDAAkC;AAClC,qDAAmC;AACnC,uDAAqC;AACrC,sDAAoC;AACpC,kDAAgC;AAChC,qDAAmC;AACnC,0DAAwC;AACxC,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,qDAAmC;AACnC,wDAAsC;AACtC,mDAAiC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "type-fns",
3
3
  "author": "ehmpathy",
4
4
  "description": "A set of types, type checks, and type guards for simpler, safer, and easier to read code.",
5
- "version": "1.13.0",
5
+ "version": "1.14.0",
6
6
  "repository": "ehmpathy/type-fns",
7
7
  "homepage": "https://github.com/ehmpathy/type-fns",
8
8
  "keywords": [