Fix some TypeScript warnings in StyleEditor

selectFn should be a function that takes one argument (a DOM element, I think)...don't know whether it's possible or desirable to be that precise.