@trpc/next
Version:
27 lines (26 loc) • 633 B
JavaScript
require("@trpc/server/unstable-core-do-not-import");
require("@trpc/client");
//#region src/app-dir/shared.ts
/**
* @internal
*/
function generateCacheTag(procedurePath, input) {
return input ? `${procedurePath}?input=${JSON.stringify(input)}` : procedurePath;
}
function isFormData(value) {
if (typeof FormData === "undefined") return false;
return value instanceof FormData;
}
//#endregion
Object.defineProperty(exports, "generateCacheTag", {
enumerable: true,
get: function() {
return generateCacheTag;
}
});
Object.defineProperty(exports, "isFormData", {
enumerable: true,
get: function() {
return isFormData;
}
});