• Simpler helper to create a dynamic class that implements the interface and populates the values with the defaults. Only instance properties (hasOwnProperty) values are copied from the defaults to the new instance

    Type Parameters

    • T

    Parameters

    • Optionaldefaults: T

      Simple helper

    Returns (new () => T)

      • new (): T
      • Returns T