type-fns 0.4.0 → 0.5.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.
package/changelog.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.5.0](https://www.github.com/ehmpathy/type-fns/compare/v0.4.1...v0.5.0) (2022-11-25)
4
+
5
+
6
+ ### Features
7
+
8
+ * **types:** add the NotUndefined generic type ([bd613c2](https://www.github.com/ehmpathy/type-fns/commit/bd613c27ced111eb44c971734ab343a9cd2fbe8e))
9
+
10
+ ### [0.4.1](https://www.github.com/ehmpathy/type-fns/compare/v0.4.0...v0.4.1) (2022-11-24)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **exports:** actually export isAPromise, isAFunction, PickOne ([ad5b28f](https://www.github.com/ehmpathy/type-fns/commit/ad5b28f1d2da9fe382d1245d38d970b1b0e7bd1c))
16
+
3
17
  ## [0.4.0](https://www.github.com/ehmpathy/type-fns/compare/v0.3.0...v0.4.0) (2022-11-24)
4
18
 
5
19
 
package/dist/index.d.ts CHANGED
@@ -4,3 +4,6 @@ export * from './checks/hasMetadata';
4
4
  export * from './checks/isPresent';
5
5
  export * from './checks/isOfEnum';
6
6
  export * from './wrappers/withNot';
7
+ export * from './checks/isAFunction';
8
+ export * from './checks/isAPromise';
9
+ export * from './types/PickOne';
package/dist/index.js CHANGED
@@ -16,4 +16,7 @@ __exportStar(require("./checks/hasMetadata"), exports);
16
16
  __exportStar(require("./checks/isPresent"), exports);
17
17
  __exportStar(require("./checks/isOfEnum"), exports);
18
18
  __exportStar(require("./wrappers/withNot"), exports);
19
+ __exportStar(require("./checks/isAFunction"), exports);
20
+ __exportStar(require("./checks/isAPromise"), exports);
21
+ __exportStar(require("./types/PickOne"), exports);
19
22
  //# 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"}
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"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * narrows the type to remove undefined
3
+ *
4
+ * ref
5
+ * - https://stackoverflow.com/a/63045455/3068233
6
+ */
7
+ export declare type NotUndefined<T> = T extends undefined ? never : T;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=NotUndefined.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotUndefined.js","sourceRoot":"","sources":["../../src/types/NotUndefined.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "type-fns",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "A set of types, type checks, and type guards for simpler, safer, and easier to read code.",
5
5
  "author": "UladKasach @uladkasach",
6
6
  "license": "MIT",