Slide 34
Slide 34 text
Minimal APIs
› Easier to maintain and change @Deprecated(
message = "Use a chained .validate {} call instead",
level = DeprecationLevel.WARNING,
replaceWith = ReplaceWith(
"this.stringPref(key).validate(isValid)",
imports = arrayOf("com.example.validate"),
),
)
public fun Krate.stringPref(
key: String,
isValid: (newValue: String) -> Boolean,
)