|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
567 bytes
|
| Line | |
|---|
| 1 | import { RouteHandler } from 'workbox-core/types.js';
|
|---|
| 2 | import './_version.js';
|
|---|
| 3 | /**
|
|---|
| 4 | * Define a default `handler` that's called when no routes explicitly
|
|---|
| 5 | * match the incoming request.
|
|---|
| 6 | *
|
|---|
| 7 | * Without a default handler, unmatched requests will go against the
|
|---|
| 8 | * network as if there were no service worker present.
|
|---|
| 9 | *
|
|---|
| 10 | * @param {workbox-routing~handlerCallback} handler A callback
|
|---|
| 11 | * function that returns a Promise resulting in a Response.
|
|---|
| 12 | *
|
|---|
| 13 | * @memberof workbox-routing
|
|---|
| 14 | */
|
|---|
| 15 | declare function setDefaultHandler(handler: RouteHandler): void;
|
|---|
| 16 | export { setDefaultHandler };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.