UNPKG

@trpc/next

Version:

The tRPC Next.js library

18 lines (15 loc) 453 B
import '@trpc/client'; import '@trpc/server/unstable-core-do-not-import'; /** * @internal */ function generateCacheTag(procedurePath, input) { return input ? `${procedurePath}?input=${JSON.stringify(input)}` : procedurePath; } function isFormData(value) { if (typeof FormData === 'undefined') { // FormData is not supported return false; } return value instanceof FormData; } export { generateCacheTag, isFormData };