Move PublicMethodsOf into @kbn/utility-types #46699
Labels
Feature:New Platform
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Core uses the global
PublicMethodsOf
utility type in several places, we should move this to@kbn/utility-types
and import it instead of using the global.We mostly use this type to get the public contract of a class. Usually this means getting the public methods but there are a few classes which expose public properties which this helper misses.
So I propose we create a
PublicContractOf
helper instead:The text was updated successfully, but these errors were encountered: