UNPKG

workbox-routing

Version:

A service worker helper library to route request URLs to handlers.

11 lines (10 loc) 357 B
import { RouteHandler, RouteHandlerObject } from 'workbox-core/types.js'; import '../_version.js'; /** * @param {function()|Object} handler Either a function, or an object with a * 'handle' method. * @return {Object} An object with a handle method. * * @private */ export declare const normalizeHandler: (handler: RouteHandler) => RouteHandlerObject;