markdown-it - v15.0.2
    Preparing search index...

    Function callable

    • Wraps a class so it can be called with or without new.

      Type Parameters

      • T extends ClassToWrap

      Parameters

      • cls: T

      Returns T & (...args: ConstructorParameters<T>) => InstanceType<T>