/**
 * Overrides the toString on a function so that it addon-jsx prints
 * the callbacks in a copy-paste-able way.
 */ export const callback = < T extends Function > ( fn , description ? ) : T => { /** A toString to render the function in storybook */ fn . toString = ( ) => description || "() => {}" ; return fn ; } ;