Skip to content

@serenity-is/corelib / Attributes / deferInit

Function: deferInit()

deferInit(value): DeferInitAttribute

Defined in: src/types/attributes.ts:164

Creates a DeferInitAttribute.

Parameters

value

True to defer the initialization (default true), false to initialize in the constructor, or "optional" to support both.

boolean | "optional"

Returns

DeferInitAttribute