mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 07:48:37 +01:00
19 lines
385 B
TypeScript
19 lines
385 B
TypeScript
import type { tRpcPaymentsType, tRpcEmailsType } from "~/server/plugins/trpc";
|
|
|
|
|
|
export function useTRPC() {
|
|
|
|
const nitroApp = useNitroApp() as any;
|
|
const payments = nitroApp.shared.tRpcPayments;
|
|
const emails = nitroApp.shared.tRpcEmails;
|
|
|
|
|
|
return {
|
|
payments,
|
|
emails
|
|
} as {
|
|
payments: tRpcPaymentsType,
|
|
emails: tRpcEmailsType
|
|
}
|
|
|
|
} |