Socket
Socket
Sign inDemoInstall

@alloc/types

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alloc/types - npm Package Compare versions

Comparing version 2.2.2 to 2.2.3

9

index.d.ts

@@ -61,3 +61,5 @@ /** Try to simplify `&` out of an object type */

K
>
> extends infer Result
? Result & object
: never

@@ -70,3 +72,6 @@ export type StringKeys<T> = string & keyof T

/** Merge all object types in a given union. Property types are unioned. */
export type CombineObjects<T> = UnionPick<T, AllKeys<T>>
// export type CombineObjects<T> = UnionPick<T, AllKeys<T>>
export type CombineObjects<T> = UnionPick<T, AllKeys<T>> extends infer Result
? Result & object
: never

@@ -73,0 +78,0 @@ /**

{
"name": "@alloc/types",
"version": "2.2.2",
"version": "2.2.3",
"types": "index.d.ts",

@@ -5,0 +5,0 @@ "files": [

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