Skip to main content
Module

x/momentum/core/deps.ts>Optional

Momentum is an open-source framework for building server-side Deno applications in TypeScript. It provides the paradigms and design patterns to guide developers to create robust, scalable, and enterprise-grade applications.
Latest
function Optional
import { Optional } from "https://deno.land/x/momentum@v0.8.2/core/deps.ts";

Decorator use to mark an injected type as optional. If the type is not able to be resolved, the argument will be undefined

Returns

PropertyDecorator & ParameterDecorator