Files
thilalib/src/Types/CommonKeys.ts
Julien Valverdé 94f16a3967
All checks were successful
Publish / publish (push) Successful in 14s
Lint / lint (push) Successful in 11s
0.1.8 (#9)
Co-authored-by: Julien Valverdé <julien.valverde@mailo.com>
Reviewed-on: #9
2024-07-29 20:35:42 +02:00

5 lines
111 B
TypeScript

/**
* Extracts the common keys between two types
*/
export type CommonKeys<A, B> = Extract<keyof A, keyof B>