Skip to main content
Module

x/leaves/mod.ts>transformer.Exclude

A Web framework For Deno with Decorator and middleware
Latest
function transformer.Exclude
import { transformer } from "https://deno.land/x/leaves@v0.1.5/mod.ts";
const { Exclude } = transformer;

Marks property as excluded from the process of transformation. By default it excludes the property for both constructorToPlain and plainToConstructor transformations, however you can specify on which of transformation types you want to skip this property.

Parameters

optional
options: ExcludeOptions

Returns

(object: Record<string, any> | Function, propertyName?: string) => void