function newDevServer(devFunction) {
		// return an apimd-enabled devFunction function
		return function newDevFunction(proxy, allowedHost) {
			// old devFunction function, conditionally modified by the old devServer function
			devFunction = isFunction(devServer) ? devServer(devFunction) : devFunction;

			/** @type {{ before: Function }} devConfig object, modified by the old devFunction function */
			const devConfig = devFunction(proxy, allowedHost);

			/** @type {Function} devConfig.before function to run before */
			const devConfigBefore = devConfig.before;

			// apimd-enabled devConfig before function
			devConfig.before = function newDevConfigBefore(app, server, compiler) {
				if (isFunction(devConfigBefore)) {
					// conditionally run the old devConfigBefore function
					devConfigBefore(app, server, compiler);
				}

				// use the apimd middleware
				app.use(middleware);
			};

			// return the apimd-enabled devConfig object
			return devConfig;
		};
	}
/**
	* returns an apimd-enabled devFunction function
	* @arg {Function} devFunction
	*/
returns an apimd-enabled devFunction function
@arg {Function} devFunction
returns an apimd - enabled devFunction function @arg { Function } devFunction
function newDevServer(devFunction) {
		return function newDevFunction(proxy, allowedHost) {
			devFunction = isFunction(devServer) ? devServer(devFunction) : devFunction;
			const devConfig = devFunction(proxy, allowedHost);
			const devConfigBefore = devConfig.before;
			devConfig.before = function newDevConfigBefore(app, server, compiler) {
				if (isFunction(devConfigBefore)) {
					devConfigBefore(app, server, compiler);
				}
				app.use(middleware);
			};
			return devConfig;
		};
	}
function newDevServer ( devFunction ) { return function newDevFunction ( proxy , allowedHost ) { devFunction = isFunction ( devServer ) ? devServer ( devFunction ) : devFunction ; const devConfig = devFunction ( proxy , allowedHost ) ; const devConfigBefore = devConfig . before ; devConfig . before = function newDevConfigBefore ( app , server , compiler ) { if ( isFunction ( devConfigBefore ) ) { devConfigBefore ( app , server , compiler ) ; } app . use ( middleware ) ; } ; return devConfig ; } ; }
returns an apimd-enabled devFunction function
 @arg {Function} devFunction
returns an apimd - enabled devFunction function @arg { Function } devFunction
// return an apimd-enabled devFunction function // old devFunction function, conditionally modified by the old devServer function /** @type {{ before: Function }} devConfig object, modified by the old devFunction function */ /** @type {Function} devConfig.before function to run before */ // apimd-enabled devConfig before function // conditionally run the old devConfigBefore function // use the apimd middleware // return the apimd-enabled devConfig object