Created
July 9, 2022 15:48
-
-
Save MaxLarue/2ee703b26d2d60ad41c79091b465c6ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const APPOINTMENT_CREATED_TYPE = 'event/appointment/created' | |
export interface AppointmentCreatedEvent extends Event { | |
type: typeof APPOINTMENT_CREATED_TYPE | |
appointmentId: string | |
} | |
export function makeAppointmentCreatedEvent(appointmentId: string) { | |
return { | |
type: APPOINTMENT_CREATED_TYPE, | |
appointmentId | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment