api / org.gradle.api.reflect / HasPublicType

HasPublicType

@Incubating interface HasPublicType

Allows a scriptable object, such as a project extension, to declare its preferred public type. The public type of an object is the one exposed to statically-typed consumers, such as Kotlin build scripts, by default.

Since
3.5

Functions

getPublicType

abstract fun getPublicType(): TypeOf<*>

Public type.