Updating typescript route definition to allow m.route.mode and m.route.param(key).