mwbot-ts - v1.2.7
    Preparing search index...

    Type Alias InstanceOf<T>Private

    InstanceOf: T extends { prototype: infer R } ? R : never

    Resolves the instance type of a given class definition.

    This is a reverse utility to PrototypeOf, used to infer the type of instances constructed by a class that matches the given definition.

    Type Parameters

    • T

      A class definition (with a prototype property).