@stryke/type-checks 0.1.4 → 0.3.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/dist/is-integer.cjs +1 -1
- package/dist/is-integer.d.ts +1 -2
- package/dist/is-integer.mjs +1 -1
- package/package.json +2 -2
package/dist/is-integer.cjs
CHANGED
|
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.isInteger = void 0;
|
|
7
7
|
var _isNumber = require("./is-number.cjs");
|
|
8
8
|
var _isString = require("./is-string.cjs");
|
|
9
|
-
const isInteger =
|
|
9
|
+
const isInteger = o => !(0, _isString.isString)(o) && (0, _isNumber.isNumber)(o) && o % 1 === 0;
|
|
10
10
|
exports.isInteger = isInteger;
|
package/dist/is-integer.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { Integer } from "@stryke/types/number";
|
|
2
1
|
/**
|
|
3
2
|
* Check if the provided value's type is an integer
|
|
4
3
|
*
|
|
5
4
|
* @param value - The value to type check
|
|
6
5
|
* @returns An indicator specifying if the value provided is of type `number` and is an integer
|
|
7
6
|
*/
|
|
8
|
-
export declare const isInteger:
|
|
7
|
+
export declare const isInteger: (value: unknown) => boolean;
|
package/dist/is-integer.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNumber as
|
|
1
|
+
import{isNumber as r}from"./is-number";import{isString as n}from"./is-string";export const isInteger=o=>!n(o)&&r(o)&&o%1===0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stryke/type-checks",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing various type-check functions to validate TypeScript values.",
|
|
6
6
|
"repository": {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"private": false,
|
|
12
12
|
"publishConfig": { "access": "public" },
|
|
13
|
-
"dependencies": { "@stryke/types": "
|
|
13
|
+
"dependencies": { "@stryke/types": "^0.8.0" },
|
|
14
14
|
"devDependencies": {},
|
|
15
15
|
"sideEffects": false,
|
|
16
16
|
"files": ["dist/**/*"],
|