@vtrbo/utils-tool
Advanced tools
+4
-1
@@ -8,5 +8,8 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// src/tool.ts | ||
| } | ||
| function noop() { | ||
| } | ||
| exports.notNullish = notNullish; exports.toRawType = toRawType; | ||
| exports.noop = noop; exports.notNullish = notNullish; exports.toRawType = toRawType; |
+3
-2
| type Recordable<T = any> = Record<string, T>; | ||
| declare function toRawType(data: any): string; | ||
| declare function toRawType(data: unknown): string; | ||
| declare function notNullish<T>(v: T | null | undefined): v is NonNullable<T>; | ||
| declare function noop(): void; | ||
| export { type Recordable, notNullish, toRawType }; | ||
| export { type Recordable, noop, notNullish, toRawType }; |
+3
-2
| type Recordable<T = any> = Record<string, T>; | ||
| declare function toRawType(data: any): string; | ||
| declare function toRawType(data: unknown): string; | ||
| declare function notNullish<T>(v: T | null | undefined): v is NonNullable<T>; | ||
| declare function noop(): void; | ||
| export { type Recordable, notNullish, toRawType }; | ||
| export { type Recordable, noop, notNullish, toRawType }; |
+3
-0
@@ -8,5 +8,8 @@ // src/tool.ts | ||
| } | ||
| function noop() { | ||
| } | ||
| export { | ||
| noop, | ||
| notNullish, | ||
| toRawType | ||
| }; |
+4
-11
| { | ||
| "name": "@vtrbo/utils-tool", | ||
| "type": "module", | ||
| "version": "0.4.1-beta.1", | ||
| "version": "0.4.1", | ||
| "description": "Collection of common JavaScript or TypeScript utils.", | ||
@@ -29,12 +29,5 @@ "author": { | ||
| }, | ||
| "main": "./dist/index.js", | ||
| "module": "./dist/index.js", | ||
| "types": "./dist/index.d.ts", | ||
| "typesVersions": { | ||
| "*": { | ||
| "*": [ | ||
| "./dist/index.d.ts" | ||
| ] | ||
| } | ||
| }, | ||
| "main": "dist/index.cjs", | ||
| "module": "dist/index.js", | ||
| "types": "dist/index.d.ts", | ||
| "files": [ | ||
@@ -41,0 +34,0 @@ "dist" |
3022
1.61%29
26.09%