Options
All
  • Public
  • Public/Protected
  • All
Menu

A ConvertingPatcher converts a document to its intermediateType, sends the result to the wrapped patcher, and then converts back to its original type. No changes will take place if no intermediateType is provided.

In case there is no resource yet and a new one needs to be created, the result of the wrapped patcher will be converted to the provided defaultType. In case no defaultType is provided, the patcher output will be returned directly.

Hierarchy

Index

Constructors

constructor

Properties

Private Readonly converter

Private Optional Readonly defaultType

defaultType?: string

Private Optional Readonly intermediateType

intermediateType?: string

Protected Readonly logger

logger: Logger = ...

Private Readonly patcher

Methods

canHandle

handle

handleSafe