import * as ponyFill from 'fetch-ponyfill' ; export interface Fetcher { fetch : typeof fetch ; } let fetcher ; if ( typeof fetch === 'undefined' ) { fetcher = ponyFill ( ) ; } else { fetcher = { fetch : fetch . bind ( undefined ) } ; } export default fetcher ;