Skip to main content
Module

x/domain_functions/src/index.ts>UnpackData

Decouple your business logic from your framework. With first-class type inference from end to end.
Go to Latest
type alias UnpackData
Re-export
import { type UnpackData } from "https://deno.land/x/domain_functions@v2.6.0/src/index.ts";

Unpacks the data type of a successful domain function.

Examples

type MyDF = DomainFunction<{ a: string }> type MyData = UnpackData // ^? { a: string }

definition: UnpackSuccess<F>["data"]