You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

type-fest

Package Overview
Dependencies
Maintainers
1
Versions
189
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
5.4.1
to
5.4.2
+1
-1
package.json
{
"name": "type-fest",
"version": "5.4.1",
"version": "5.4.2",
"description": "A collection of essential TypeScript types",

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

@@ -6,5 +6,5 @@ import type {OmitIndexSignature} from './omit-index-signature.d.ts';

// Merges two objects without worrying about index signatures.
type SimpleMerge<Destination, Source> = {
type SimpleMerge<Destination, Source> = Simplify<{
[Key in keyof Destination as Key extends keyof Source ? never : Key]: Destination[Key];
} & Source;
} & Source>;

@@ -49,7 +49,11 @@ /**

export type Merge<Destination, Source> =
Simplify<
SimpleMerge<PickIndexSignature<Destination>, PickIndexSignature<Source>>
& SimpleMerge<OmitIndexSignature<Destination>, OmitIndexSignature<Source>>
>;
Destination extends unknown // For distributing `Destination`
? Source extends unknown // For distributing `Source`
? Simplify<
SimpleMerge<PickIndexSignature<Destination>, PickIndexSignature<Source>>
& SimpleMerge<OmitIndexSignature<Destination>, OmitIndexSignature<Source>>
>
: never // Should never happen
: never; // Should never happen
export {};
import type {ConditionalSimplifyDeep} from './conditional-simplify-deep.d.ts';
import type {MapsSetsOrArrays, NonRecursiveType} from './internal/index.d.ts';
import type {UnknownArray} from './unknown-array.d.ts';

@@ -112,3 +113,3 @@ /**

Type,
ExcludeType | NonRecursiveType | MapsSetsOrArrays,
ExcludeType | NonRecursiveType | Exclude<MapsSetsOrArrays, UnknownArray>,
object

@@ -115,0 +116,0 @@ >;