import { Fetcher , FetcherItem } from './types' ; const NULL = null ; export class fetcher { private static store : Fetcher = { } ; static set ( name , value ) { fetcher . store [ name ] = value ; } static get ( name ) { if ( ! fetcher . store [ name ] ) { fetcher . store [ name ] = NULL ; } return fetcher . store [ name ] ; } }