let customValue = { } ; export const getCustomValue = ( key ? ) : any => { return key ? customValue [ key ] : customValue ; } ; export const setCustomValue = ( value ) : void => { customValue = { ... customValue , ... value , } ; } ;