Skip to main content

Function: decoratePreviewer()

function decoratePreviewer(BasePreviewerConstructor?): ConnectionPreviewerConstructor;

Defined in: connection_previewer.ts:40

Returns a connection previewer constructor that decorates the passed constructor to add connection previewing.

Parameters​

ParameterTypeDescription
BasePreviewerConstructor?ConnectionPreviewerConstructorThe constructor for the base connection previewer class being decorated. If not provided, the default InsertionMarkerPreviewer will be used.

Returns​

ConnectionPreviewerConstructor

A decorated connection previewer constructor.