Skip to content

v0.13.0

Compare
Choose a tag to compare
@sugarmanz sugarmanz released this 09 Jul 02:32

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

Authors: 1