Type Alias Explicit<T>

Explicit<T>: T extends NetClass
    ? never
    : T extends IInterfaceBase
        ? Pick<T, "_interfaces">
        : never

This type signals that the interface is explicitly implemented. The methods of this interface are therefore not available via a class instance without first casting it to the appropriate interface via NetClass.Cast or NetClass.TryCast. When an explictily implemented interface appears as argument, a cast is not required.

Type Parameters

  • T

    The interface which may be explicitly implemented.