Documentation - v0.27.1
    Preparing search index...

    Function makeInspectable

    • Small helper function that adds toJSON and util.custom.inspect methods to a given class based on its getters

      Note: This means that all getters must be pure! (getter that caches after its first invocation is also considered pure in this case)

      Type Parameters

      • T

      Parameters

      • obj: new (...args: any[]) => T
      • Optionalprops: (keyof T)[]
      • Optionalhide: (keyof T)[]

      Returns new (...args: any[]) => T