| /** | ||
| * This is a type guard that determines whether the given unknown value | ||
| * is an object with a property of a certain type. | ||
| * @param value | ||
| * @param propName | ||
| */ | ||
| export declare function hasProperty<P extends PropertyKey>(value: unknown, propName: P): value is { | ||
| [key in P]: unknown; | ||
| }; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
+0
-0
@@ -0,0 +0,0 @@ /** |
+7
-9
| { | ||
| "name": "unknown", | ||
| "version": "0.2.5", | ||
| "version": "0.2.6", | ||
| "description": "A TypeScript utility library for interacting with the 'unknown' type.", | ||
@@ -37,13 +37,11 @@ "keywords": [ | ||
| "devDependencies": { | ||
| "@types/chai": "^4.2.21", | ||
| "@types/mocha": "^9.0.0", | ||
| "@types/chai": "^4.3.14", | ||
| "@types/mocha": "^9.1.1", | ||
| "@types/node": "^12.12.6", | ||
| "chai": "^4.3.4", | ||
| "link-self": "^0.2.0", | ||
| "mocha": "^9.1.1", | ||
| "shx": "^0.3.3", | ||
| "typescript": "^4.4.2" | ||
| "chai": "^4.4.1", | ||
| "mocha": "^9.2.2", | ||
| "shx": "^0.3.4", | ||
| "typescript": "^5.4.5" | ||
| }, | ||
| "scripts": { | ||
| "prepare": "link-self", | ||
| "build": "tsc -b src && shx cp ./package.cjs.json ./dist/cjs/package.json", | ||
@@ -50,0 +48,0 @@ "pretest": "npm run build", |
4450
4.85%7
-12.5%8
14.29%40
29.03%