Skip to main content
Module

x/domain_functions/src/types.ts

Decouple your business logic from your framework. With first-class type inference from end to end.
Go to Latest
import * as domainFunctions from "https://deno.land/x/domain_functions@v2.6.0/src/types.ts";

Type Aliases

It is similar to Partial but it requires at least one property to be defined.

A domain function. It carries the output type which can be further unpacked with UnpackData and other type helpers.

The properties of the ErrorResult which carry information about what made the domain function fail.

A failed domain function result.

Returns the last item of a tuple type.

Merges the data types of a list of objects.

A parsing error when validating the input or environment schemas. This will be transformed into a SchemaError before being returned from the domain function. It is usually not visible to the end user unless one wants to write an adapter for a schema validator.

The result of input or environment validation. See the type Result for the return values of domain functions. It is usually not visible to the end user unless one wants to write an adapter for a schema validator.

The object used to validate either input or environment when creating domain functions.

The content of the Promise a domain function returns.

Items in the inputErrors and environmentErrors array returned by failed domain functions.

A successful domain function result.

Converts a tuple type to a union type.

Unpacks a list of DomainFunctions into a tuple of their data types.

Unpacks the data type of a successful domain function.

Unpacks the result of a domain function.

Unpacks the data type of a successful domain function.