@transcend-io/type-utils
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -8,3 +8,3 @@ import type { StringKeys } from './types'; | ||
*/ | ||
export declare function getStringKeys<T extends Record<string, unknown>>(o: T): StringKeys<T>[]; | ||
export declare function getStringKeys<T extends {}>(o: T): StringKeys<T>[]; | ||
/** | ||
@@ -17,3 +17,3 @@ * Object.keys that actually preserves keys as types. | ||
*/ | ||
export declare function getKeys<T extends Record<string | number, unknown>>(o: T): (keyof T)[]; | ||
export declare function getKeys<T extends {}>(o: T): (keyof T)[]; | ||
//# sourceMappingURL=getKeys.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getKeys = exports.getStringKeys = void 0; | ||
/* eslint-disable @typescript-eslint/ban-types */ | ||
/** | ||
@@ -25,2 +26,3 @@ * Object.keys for string keys only | ||
exports.getKeys = getKeys; | ||
/* eslint-enable @typescript-eslint/ban-types */ | ||
//# sourceMappingURL=getKeys.js.map |
@@ -40,4 +40,4 @@ /** | ||
*/ | ||
export declare type RecursiveIdentity<T> = T extends AnyArray ? ArrType<T> extends Record<string | number | symbol, unknown> ? Identity<ArrType<T>>[] : T : T extends string ? T : T extends object ? { | ||
[K in keyof T]: T[K] extends Record<string | number | symbol, unknown> ? Identity<T[K]> : T[K]; | ||
export declare type RecursiveIdentity<T> = T extends AnyArray ? ArrType<T> extends object ? Identity<ArrType<T>>[] : T : T extends string ? T : T extends object ? { | ||
[K in keyof T]: T[K] extends object ? Identity<T[K]> : T[K]; | ||
} : T; | ||
@@ -44,0 +44,0 @@ /** |
@@ -5,3 +5,3 @@ { | ||
"description": "Small package containing useful typescript utilities.", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"homepage": "https://github.com/transcend-io/type-utils", | ||
@@ -40,3 +40,3 @@ "repository": { | ||
"depcheck": "^1.4.2", | ||
"eslint": "^8.0.1", | ||
"eslint": "^7.30.0", | ||
"eslint-config-airbnb-base": "^14.2.1", | ||
@@ -43,0 +43,0 @@ "eslint-import-resolver-typescript": "^2.5.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1272
111362