Skip to main content
Module

x/domain_functions/src/types.ts>UnpackSuccess

Decouple your business logic from your framework. With first-class type inference from end to end.
Go to Latest
type alias UnpackSuccess
import { type UnpackSuccess } from "https://deno.land/x/domain_functions@v2.6.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 }>

definition: Extract<UnpackResult<F>, { success: true; }>