import { type UnpackSuccess } from "https://deno.land/x/domain_functions@v3.0.0/src/types.ts";
Unpacks the data type of a successful domain function.
Examples
type MyDF = DomainFunction<{ a: string }>
type MyData = UnpackSuccess
// ^? SuccessResult<{ a: string }>
type MyDF = DomainFunction<{ a: string }> type MyData = UnpackSuccess // ^? SuccessResult<{ a: string }>
Type Parameters
F extends DomainFunction
definition: Extract<UnpackResult<F>, { success: true; }>