import { ExtractGetters , XModuleName } from '../x-modules/x-modules.types' ; import { XPluginOptions } from './x-plugin.types' ; param options export function assertXPluginOptionsAreValid ( options ) { if ( ! options ) { throw new Error ( 'XPlugin needs to be installed with an options object containing at least an adapter. Please provide a valid object' ) ; } if ( options . adapter == null ) { throw new Error ( "The options object doesn't seem to have an adapter. Please, create one and pass it through the options object" ) ; } } param moduleName param getterName returns public export function getGetterPath < ModuleName extends XModuleName > ( moduleName , getterName ) { return `x/${ moduleName }/${ getterName as string }` ; }