     'iron:router or meteorhacks:flow-router.'
 
   invalidRouteNameArgument: 'Invalid argument, must be String or RegExp.'
+  invalidRouteParamsArgument: 'Invalid arguemnt, must be Object.'
 
 share.config = new ReactiveDict 'activeRouteConfig'
 share.config.setDefault

    share.config.set options
    return

  name: (routeName) ->
    checkRouterPackages()

    return if Meteor.isServer

    checkRouteOrPath routeName

    if ir
      currentRouteName = ir.Router.current()?.route?.getName?()

    if fr
      currentRouteName ?= fr.FlowRouter.getRouteName()

    test currentRouteName, routeName

  path: (path) ->
    checkRouterPackages()

    check arg, Match.OneOf RegExp, String
  catch error
    throw new Error errorMessages.invalidRouteNameArgument

checkParams = (arg) ->
  try
    check arg, Object
  catch error
    throw new Error errorMessages.invalidRouteParamsArgument

checkRouterPackages = ->
  fr = Package['kadira:flow-router'] ? Package['meteorhacks:flow-router']
