import { bindCallback , Observable } from 'rxjs' ; import { defaultOptions } from 'src/ts/options/default-options' ; import { IOptions } from 'src/ts/options/option' ; const getOptionsWithDefaults = ( cb ) => chrome . storage . sync . get ( defaultOptions , cb ) ; export const OptionsObservables = { getOptions$ ( ) { return bindCallback < IOptions > ( getOptionsWithDefaults ) ( ) ; } , } ;