📅  最后修改于: 2022-03-11 15:04:04.089000             🧑  作者: Mango
enum Response {
No = 0,
Yes = 1,
}
function respond(recipient: string, message: Response): void {
// ...
}
respond("Princess Caroline", Response.Yes)