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

type-fest

Package Overview
Dependencies
Maintainers
1
Versions
159
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

type-fest - npm Package Compare versions

Comparing version 4.28.0 to 4.28.1

2

package.json
{
"name": "type-fest",
"version": "4.28.0",
"version": "4.28.1",
"description": "A collection of essential TypeScript types",

@@ -5,0 +5,0 @@ "license": "(MIT OR CC0-1.0)",

@@ -101,2 +101,3 @@ import type {NonRecursiveType, UnionMin, UnionMax, TupleLength, StaticPartOfArray, VariablePartOfArray, IsUnion, IsArrayReadonly, SetArrayAccess} from './internal';

type SharedObjectUnionFieldsDeep<Union, Options extends SharedUnionFieldsDeepOptions> =
// `keyof Union` can extract the same key in union type, if there is no same key, return never.
keyof Union extends infer Keys

@@ -108,3 +109,7 @@ ? IsNever<Keys> extends false

? Union[Key]
: SharedUnionFieldsDeep<Union[Key], Options>
// Remove `undefined` from the union to support optional
// fields, then recover `undefined` if union was already undefined.
: SharedUnionFieldsDeep<Exclude<Union[Key], undefined>, Options> | (
undefined extends Required<Union>[Key] ? undefined : never
)
}

@@ -111,0 +116,0 @@ : {}

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