Type alias PublicInterface<Interface>

PublicInterface<Interface>: Pick<Interface, keyof Interface>

Get a type representing the public interface of the given type. The returned type will have all public properties, but will omit private properties.

Type Parameters

  • Interface

    The interface to return a public representation of.