Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@transcend-io/type-utils

Package Overview
Dependencies
Maintainers
6
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transcend-io/type-utils - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

4

build/getKeys.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc