Typed as ` export type EuiSwitchChangeCallback = (state: boolean) => void;` but the callback gets an event, not a boolean: <img width="653" alt="screen shot 2018-08-22 at 11 38 16 am" src="https://user-images.githubusercontent.com/16563603/44474120-e14d8e80-a5ff-11e8-86ae-f7b51f39ebed.png"> see the type error when I use the callback type, but the code is correct: <img width="752" alt="screen shot 2018-08-22 at 11 37 55 am" src="https://user-images.githubusercontent.com/16563603/44474132-eb6f8d00-a5ff-11e8-9e32-8a7bb25d3c6a.png">
Typed as
export type EuiSwitchChangeCallback = (state: boolean) => void;but the callback gets an event, not a boolean:

see the type error when I use the callback type, but the code is correct: