Skip to Content

@revideo/core


@revideo/core / decorators / lazy

Function: lazy()

lazy(factory): PropertyDecorator

Defined in: decorators/lazy.ts:15 

Create a lazy decorator.

Parameters

factory

() => unknown

A function that returns the value of this property.

Returns

PropertyDecorator

Remarks

A property marked as lazy will not be initialized until it’s requested for the first time. Lazy properties are read-only.

Must be used for any static properties that require the DOM API to be initialized.

© 2026 Haven Technologies, Inc.
Function: lazy() – Revideo