Skip to content

Instantly share code, notes, and snippets.

@Plutanium
Plutanium / Person.ts
Last active October 23, 2023 18:19
Person
type PartialPick<T, F extends keyof T> = Omit<T, F> & Partial<Pick<T, F>>;
type PersonParams = {
firstName: string,
lastName: string,
birthDate?: Date
gender: Gender
mother?: Person | PersonParams
fatherOrMother?: Person | PersonParams
}