hexo/node_modules/workbox-routing/utils/constants.d.ts

20 lines
503 B
TypeScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
import '../_version.js';
export declare type HTTPMethod = 'DELETE' | 'GET' | 'HEAD' | 'PATCH' | 'POST' | 'PUT';
/**
* The default HTTP method, 'GET', used when there's no specific method
* configured for a route.
*
* @type {string}
*
* @private
*/
export declare const defaultMethod: HTTPMethod;
/**
* The list of valid HTTP methods associated with requests that could be routed.
*
* @type {Array<string>}
*
* @private
*/
export declare const validMethods: HTTPMethod[];