UNPKG

next

Version:

The React Framework

20 lines (19 loc) 560 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "default", { enumerable: true, get: function() { return ensureServerEntryExports; } }); function ensureServerEntryExports(actions) { for(let i = 0; i < actions.length; i++){ const action = actions[i]; if (typeof action !== "function") { throw new Error(`A "use server" file can only export async functions, found ${typeof action}.`); } } } //# sourceMappingURL=action-validate.js.map