import { makeDomainFunction } from "https://deno.land/x/domain_functions@v3.0.0/src/index.ts";
Creates a domain function. After giving the input and environment schemas, you can pass a handler function that takes type safe input and environment. That function is gonna catch any errors and always return a Result.