import { fromSuccess } from "https://deno.land/x/domain_functions@v3.0.0/src/index.ts";
It can be used to call a domain function from another domain function. It will return the output of the given domain function if it was successfull, otherwise it will throw a ResultError
that will bubble up to the parent function.
Also good to use it in successfull test cases.
Type Parameters
T extends DomainFunction
Parameters
df: T
Returns
(...args: Parameters<DomainFunction>) => Promise<UnpackData<T>>