type Identification =
{
readonly isIdentified: false;
}
| {
readonly isIdentified: true;
readonly phoneNumber: string;
readonly birth: Date;
readonly gender: boolean;
};
type propertyName = keyof Identification;
var name: propertyName = "gender"; // Type '"gender"' is not assignable to type '"isIdentified"'
如何指定具有性别属性的工会类型之一?