Extend
All checks were successful
Lint / lint (push) Successful in 11s

This commit is contained in:
Julien Valverdé
2024-07-29 19:26:44 +02:00
parent 4366f2af6e
commit fc33429b93
3 changed files with 71 additions and 0 deletions

4
src/Types/CommonKeys.ts Normal file
View File

@@ -0,0 +1,4 @@
/**
* Extracts the common keys between two types
*/
export type CommonKeys<A, B> = Extract<keyof A, keyof B>