type-fest
Advanced tools
Comparing version 3.9.0 to 3.10.0
{ | ||
"name": "type-fest", | ||
"version": "3.9.0", | ||
"version": "3.10.0", | ||
"description": "A collection of essential TypeScript types", | ||
@@ -43,2 +43,5 @@ "license": "(MIT OR CC0-1.0)", | ||
}, | ||
"peerDependencies": { | ||
"typescript": ">=4.7.0" | ||
}, | ||
"xo": { | ||
@@ -45,0 +48,0 @@ "rules": { |
@@ -40,33 +40,2 @@ <div align="center"> | ||
</a> | ||
<br> | ||
<br> | ||
<br> | ||
<a href="https://www.useanvil.com/?utm_source=sindresorhus#gh-light-mode-only"> | ||
<div> | ||
<img src="https://sindresorhus.com/assets/thanks/anvil-logo-light.svg" width="200" alt="Anvil"> | ||
</div> | ||
<br> | ||
<b>Paperwork that makes the data work.</b> | ||
<div> | ||
<sub> | ||
Easy APIs for paperwork. PDF generation, e-signature and embeddable no-code webforms. | ||
<br> | ||
The easiest way to build paperwork automation into your product. | ||
</sub> | ||
</div> | ||
</a> | ||
<a href="https://www.useanvil.com/?utm_source=sindresorhus#gh-dark-mode-only"> | ||
<div> | ||
<img src="https://sindresorhus.com/assets/thanks/anvil-logo-dark.svg" width="200" alt="Anvil"> | ||
</div> | ||
<br> | ||
<b>Paperwork that makes the data work.</b> | ||
<div> | ||
<sub> | ||
Easy APIs for paperwork. PDF generation, e-signature and embeddable no-code webforms. | ||
<br> | ||
The easiest way to build paperwork automation into your product. | ||
</sub> | ||
</div> | ||
</a> | ||
</p> | ||
@@ -73,0 +42,0 @@ </div> |
@@ -18,3 +18,6 @@ import type {Merge} from './merge'; | ||
type Baz = OverrideProperties<Foo, {c: number}> | ||
// error TS2559: Type '{c: number}' has no properties in common with type 'Partial{a: unknown; b: unknown}>'. | ||
// Error, type '{ c: number; }' does not satisfy the constraint '{ c: never; }' | ||
type Fizz = OverrideProperties<Foo, {b: number; c: number}> | ||
// Error, type '{ b: number; c: number; }' does not satisfy the constraint '{ b: number; c: never; }' | ||
``` | ||
@@ -26,3 +29,3 @@ | ||
TOriginal, | ||
TOverride extends Partial<{[key in keyof TOriginal]: unknown}>, | ||
TOverride extends {[Key in keyof TOverride]: Key extends keyof TOriginal ? TOverride[Key] : never}, | ||
> = Merge<TOriginal, TOverride>; |
@@ -31,6 +31,5 @@ import type {Except} from './except'; | ||
Simplify< | ||
// Pick just the keys that are optional from the base type. | ||
Except<BaseType, Keys> & | ||
BaseType & | ||
// Pick the keys that should be required from the base type and make them required. | ||
Required<Pick<BaseType, Keys>> | ||
>; |
6213
265792
1
917