mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-03 22:52:18 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
25
web/node_modules/workbox-routing/registerRoute.d.ts
generated
vendored
Normal file
25
web/node_modules/workbox-routing/registerRoute.d.ts
generated
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
import { Route } from './Route.js';
|
||||
import { HTTPMethod } from './utils/constants.js';
|
||||
import { Handler, MatchCallback } from './_types.js';
|
||||
import './_version.js';
|
||||
/**
|
||||
* Easily register a RegExp, string, or function with a caching
|
||||
* strategy to a singleton Router instance.
|
||||
*
|
||||
* This method will generate a Route for you if needed and
|
||||
* call [registerRoute()]{@link module:workbox-routing.Router#registerRoute}.
|
||||
*
|
||||
* @param {RegExp|string|module:workbox-routing.Route~matchCallback|module:workbox-routing.Route} capture
|
||||
* If the capture param is a `Route`, all other arguments will be ignored.
|
||||
* @param {module:workbox-routing~handlerCallback} [handler] A callback
|
||||
* function that returns a Promise resulting in a Response. This parameter
|
||||
* is required if `capture` is not a `Route` object.
|
||||
* @param {string} [method='GET'] The HTTP method to match the Route
|
||||
* against.
|
||||
* @return {module:workbox-routing.Route} The generated `Route`(Useful for
|
||||
* unregistering).
|
||||
*
|
||||
* @memberof module:workbox-routing
|
||||
*/
|
||||
declare function registerRoute(capture: RegExp | string | MatchCallback | Route, handler?: Handler, method?: HTTPMethod): Route;
|
||||
export { registerRoute };
|
Loading…
Add table
Add a link
Reference in a new issue