Skip to main content
Module

x/ahh/src/default.ts

Opinionated idiomatic features for TypeScript.
Latest
import * as ahh from "https://deno.land/x/ahh@v0.14.0/src/default.ts";

Defaults.

The Default type defined here simply reflects a common pattern, wherein objects with a default value normally have a nullary constructor variant. This pairs nicely with Object.assign, where the target can be the default value of an object.

Functions

Returns the default value for a Default object.

Type Aliases

A object with a constructor that returns a default value.