Declare types for myFloatHook methods