Get object type using UseTRPCQueryResult
this code gives me an array of objects, I want to get the type only of the object and not the array of it, to have a component for it, how can I do it?
type playlistOutputData = UseTRPCQueryResult<
inferRouterOutputs<AppRouter>["notifications"]["getUserNotifications"],
TRPCClientErrorLike<AppRouter>["data"]
>["data"];
type InviteNotificationProps = {
notification: playlistOutputData;
};