Skip to content

Function: optional() ​

optional<T>(value): T | null

Defined in: src/runtime.ts:136

Returns the object if it exists, otherwise returns null (similar to optional() helper)

Type Parameters ​

T ​

T

Parameters ​

value ​

T

The value to return if it exists

Returns ​

T | null

The value or null

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.