Working subtraiting
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Julien Valverdé
2024-02-05 03:19:12 +01:00
parent a123da55fe
commit 6853bcbee8
7 changed files with 121 additions and 103 deletions

View File

@@ -2,6 +2,17 @@ import { Fn } from "hotscript"
import { Simplify } from "type-fest"
/**
* Represents the common keys between two types.
* @template A - The first type.
* @template B - The second type.
*/
export type CommonKeys<A, B> = Extract<keyof A, keyof B>
export type KeysOnlyInLeft<Left, Right> = {
[K in Exclude<keyof Left, keyof Right>]: Left[K]
}
export interface SimplifyFn extends Fn {
return: Simplify<this["arg0"]>
}