Fix some TypeScript warnings in StyleEditor

There is not a "function" type, but you could put something like this:

selectFn?: (e: HTMLElement) => any

but that may be more confusing.