I'm learning TypeScript. Today I opened a random project on the Internet, and saw this in a TypeScript file:
import { Route, useRoute } from "@react-navigation/native"
import { NewAppointmentConfirmationScreenProps } from "@app/screens/new-appointment-confirmation/types"
export const useNewAppointmentConfirmationScreenRoute = () =>
useRoute<Route<"NewAppointmentConfirmationScreen", NewAppointmentConfirmationScreenProps>>()
I never seen this function before! What does this:
useRoute<Route<"NewAppointmentConfirmationScreen", NewAppointmentConfirmationScreenProps>>()
mean? I know a component is something like <abc/> but what is a function name followed by angle brackets (less-than/greater-than signs)?

