type-fest
Advanced tools
+1
-1
| { | ||
| "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)", |
+10
-6
@@ -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 @@ >; |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
525085
0.06%12755
0.04%