type-fns 0.4.1 → 0.5.1

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.1](https://www.github.com/ehmpathy/type-fns/compare/v0.5.0...v0.5.1) (2022-11-25)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **exports:** actually export NotUndefined ([1869b05](https://www.github.com/ehmpathy/type-fns/commit/1869b05e59764b3b822298dac223b9cb09b02fc0))
9
+
10
+ ## [0.5.0](https://www.github.com/ehmpathy/type-fns/compare/v0.4.1...v0.5.0) (2022-11-25)
11
+
12
+
13
+ ### Features
14
+
15
+ * **types:** add the NotUndefined generic type ([bd613c2](https://www.github.com/ehmpathy/type-fns/commit/bd613c27ced111eb44c971734ab343a9cd2fbe8e))
16
+
3
17
  ### [0.4.1](https://www.github.com/ehmpathy/type-fns/compare/v0.4.0...v0.4.1) (2022-11-24)
4
18
 
5
19
 
package/dist/index.d.ts CHANGED
@@ -7,3 +7,4 @@ export * from './wrappers/withNot';
7
7
  export * from './checks/isAFunction';
8
8
  export * from './checks/isAPromise';
9
9
  export * from './types/PickOne';
10
+ export * from './types/NotUndefined';
package/dist/index.js CHANGED
@@ -19,4 +19,5 @@ __exportStar(require("./wrappers/withNot"), exports);
19
19
  __exportStar(require("./checks/isAFunction"), exports);
20
20
  __exportStar(require("./checks/isAPromise"), exports);
21
21
  __exportStar(require("./types/PickOne"), exports);
22
+ __exportStar(require("./types/NotUndefined"), exports);
22
23
  //# 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"}
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,uDAAqC"}
@@ -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.1",
3
+ "version": "0.5.1",
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",