v0.13.0
Release Notes
New Hooks DSL (#29)
π₯ Breaking Change π₯
Relax typing specification when using the DSL. Hooks should always use the Hook
superclass as the specified type and rely solely on the annotation to specify the actual constraints of the hook:
abstract class CarHooks : Hooks() {
@Sync<() -> Unit>
abstract val brake: Hook
@Sync<(newSpeed: Int) -> Unit>
abstract val accelerate: Hook
}
π Enhancement
- New Hooks DSL #29 (@stabbylambda)
Authors: 1
- David Stone (@stabbylambda)