Matter of preference. Type checking is more flexible. Future could support 'onresize' as an additional callback, or strings such as 'throttle' or 'debounce'.