Skip to content

Function.markOptional

github-actions[bot] edited this page Jul 8, 2026 · 19 revisions

umt / markOptional

Function: markOptional()

markOptional(target, propertyKey): void

Defined in: Decorator/markOptional.ts:8

Marks a field as accepting undefined without running its rules.

Parameters

target

object

The class prototype.

propertyKey

PropertyKey

The field to mark optional.

Returns

void

API

Classes

Interfaces

Type Aliases

Variables

Functions

Clone this wiki locally