@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Contract for optional text detectors that transform raw text at a pipeline boundary.

    Data detectors are intended to run either before or after XML template processing, never during block expansion itself.

    interface IDataDetector {
        detect(text: string): boolean;
        process(text: string): string;
    }

    Implemented by

    Index

    Methods

    Methods

    • Returns true when the detector should process the provided text.

      Parameters

      • text: string

      Returns boolean

    • Transforms detected text into the desired output string.

      Parameters

      • text: string

      Returns string