Custom Backend Task

script/custom-backend-task.ts:

export async function hello(name) { return `Hello ${name}!`; }

owner:dillonkearns custom-backend-task search

elm-pages/src/BackendTask/Custom.elm page

> A BackendTask.Custom will call an async JavaScript function with the given name from the definition in a file called `custom-backend-task.js` in your project's root directory. The function receives the input JSON value, and the Decoder is used to decode the return value of the async function.