@serwist/core
Advanced tools
Comparing version 9.0.0-preview.14 to 9.0.0-preview.15
@@ -5,4 +5,4 @@ /** | ||
* @private | ||
**/ | ||
*/ | ||
export declare function dontWaitFor(promise: Promise<any>): void; | ||
//# sourceMappingURL=dontWaitFor.d.ts.map |
@@ -30,5 +30,3 @@ export type PromiseOrNot<T> = T | Promise<T>; | ||
*/ | ||
export interface RouteMatchCallback { | ||
(options: RouteMatchCallbackOptions): any; | ||
} | ||
export type RouteMatchCallback = (options: RouteMatchCallbackOptions) => any; | ||
/** | ||
@@ -79,5 +77,3 @@ * Options passed to a `RouteHandlerCallback` function. | ||
*/ | ||
export interface RouteHandlerCallback { | ||
(options: RouteHandlerCallbackOptions): Promise<Response>; | ||
} | ||
export type RouteHandlerCallback = (options: RouteHandlerCallbackOptions) => Promise<Response>; | ||
/** | ||
@@ -91,5 +87,3 @@ * The "handler" callback is invoked whenever a `Router` matches a URL/Request | ||
*/ | ||
export interface ManualHandlerCallback { | ||
(options: ManualHandlerCallbackOptions): Promise<Response>; | ||
} | ||
export type ManualHandlerCallback = (options: ManualHandlerCallbackOptions) => Promise<Response>; | ||
/** | ||
@@ -115,5 +109,3 @@ * An object with a `handle` method of type `RouteHandlerCallback`. | ||
} | ||
export interface HandlerWillStartCallback { | ||
(param: HandlerWillStartCallbackParam): Promise<any>; | ||
} | ||
export type HandlerWillStartCallback = (param: HandlerWillStartCallbackParam) => Promise<any>; | ||
export interface CacheDidUpdateCallbackParam { | ||
@@ -143,5 +135,3 @@ /** | ||
} | ||
export interface CacheDidUpdateCallback { | ||
(param: CacheDidUpdateCallbackParam): PromiseOrNot<any>; | ||
} | ||
export type CacheDidUpdateCallback = (param: CacheDidUpdateCallbackParam) => PromiseOrNot<any>; | ||
export interface CacheKeyWillBeUsedCallbackParam { | ||
@@ -154,5 +144,3 @@ mode: string; | ||
} | ||
export interface CacheKeyWillBeUsedCallback { | ||
(param: CacheKeyWillBeUsedCallbackParam): PromiseOrNot<Request | string>; | ||
} | ||
export type CacheKeyWillBeUsedCallback = (param: CacheKeyWillBeUsedCallbackParam) => PromiseOrNot<Request | string>; | ||
export interface CacheWillUpdateCallbackParam { | ||
@@ -164,5 +152,3 @@ request: Request; | ||
} | ||
export interface CacheWillUpdateCallback { | ||
(param: CacheWillUpdateCallbackParam): PromiseOrNot<any>; | ||
} | ||
export type CacheWillUpdateCallback = (param: CacheWillUpdateCallbackParam) => PromiseOrNot<any>; | ||
export interface CachedResponseWillBeUsedCallbackParam { | ||
@@ -187,5 +173,3 @@ /** | ||
} | ||
export interface CachedResponseWillBeUsedCallback { | ||
(param: CachedResponseWillBeUsedCallbackParam): PromiseOrNot<any>; | ||
} | ||
export type CachedResponseWillBeUsedCallback = (param: CachedResponseWillBeUsedCallbackParam) => PromiseOrNot<any>; | ||
export interface FetchDidFailCallbackParam { | ||
@@ -198,5 +182,3 @@ error: Error; | ||
} | ||
export interface FetchDidFailCallback { | ||
(param: FetchDidFailCallbackParam): PromiseOrNot<any>; | ||
} | ||
export type FetchDidFailCallback = (param: FetchDidFailCallbackParam) => PromiseOrNot<any>; | ||
export interface FetchDidSucceedCallbackParam { | ||
@@ -208,5 +190,3 @@ request: Request; | ||
} | ||
export interface FetchDidSucceedCallback { | ||
(param: FetchDidSucceedCallbackParam): PromiseOrNot<Response>; | ||
} | ||
export type FetchDidSucceedCallback = (param: FetchDidSucceedCallbackParam) => PromiseOrNot<Response>; | ||
export interface RequestWillFetchCallbackParam { | ||
@@ -217,5 +197,3 @@ request: Request; | ||
} | ||
export interface RequestWillFetchCallback { | ||
(param: RequestWillFetchCallbackParam): PromiseOrNot<Request>; | ||
} | ||
export type RequestWillFetchCallback = (param: RequestWillFetchCallbackParam) => PromiseOrNot<Request>; | ||
export interface HandlerWillRespondCallbackParam { | ||
@@ -227,5 +205,3 @@ request: Request; | ||
} | ||
export interface HandlerWillRespondCallback { | ||
(param: HandlerWillRespondCallbackParam): PromiseOrNot<Response>; | ||
} | ||
export type HandlerWillRespondCallback = (param: HandlerWillRespondCallbackParam) => PromiseOrNot<Response>; | ||
export interface HandlerDidErrorCallbackParam { | ||
@@ -237,5 +213,3 @@ request: Request; | ||
} | ||
export interface HandlerDidErrorCallback { | ||
(param: HandlerDidErrorCallbackParam): PromiseOrNot<Response | undefined>; | ||
} | ||
export type HandlerDidErrorCallback = (param: HandlerDidErrorCallbackParam) => PromiseOrNot<Response | undefined>; | ||
export interface HandlerDidRespondCallbackParam { | ||
@@ -247,5 +221,3 @@ request: Request; | ||
} | ||
export interface HandlerDidRespondCallback { | ||
(param: HandlerDidRespondCallbackParam): PromiseOrNot<any>; | ||
} | ||
export type HandlerDidRespondCallback = (param: HandlerDidRespondCallbackParam) => PromiseOrNot<any>; | ||
export interface HandlerDidCompleteCallbackParam { | ||
@@ -258,5 +230,3 @@ request: Request; | ||
} | ||
export interface HandlerDidCompleteCallback { | ||
(param: HandlerDidCompleteCallbackParam): PromiseOrNot<any>; | ||
} | ||
export type HandlerDidCompleteCallback = (param: HandlerDidCompleteCallbackParam) => PromiseOrNot<any>; | ||
/** | ||
@@ -263,0 +233,0 @@ * An object with optional lifecycle callback properties for the fetch and |
{ | ||
"name": "@serwist/core", | ||
"version": "9.0.0-preview.14", | ||
"version": "9.0.0-preview.15", | ||
"type": "module", | ||
@@ -42,4 +42,4 @@ "description": "This module is used by a number of the other Serwist modules to share common code.", | ||
"rollup": "4.13.0", | ||
"typescript": "5.5.0-dev.20240312", | ||
"@serwist/constants": "9.0.0-preview.14" | ||
"typescript": "5.5.0-dev.20240323", | ||
"@serwist/constants": "9.0.0-preview.15" | ||
}, | ||
@@ -46,0 +46,0 @@ "peerDependencies": { |
@@ -12,3 +12,3 @@ /* | ||
* @private | ||
**/ | ||
*/ | ||
export function dontWaitFor(promise: Promise<any>): void { | ||
@@ -15,0 +15,0 @@ // Effective no-op. |
@@ -41,5 +41,3 @@ /* | ||
*/ | ||
export interface RouteMatchCallback { | ||
(options: RouteMatchCallbackOptions): any; | ||
} | ||
export type RouteMatchCallback = (options: RouteMatchCallbackOptions) => any; | ||
@@ -93,5 +91,3 @@ /** | ||
*/ | ||
export interface RouteHandlerCallback { | ||
(options: RouteHandlerCallbackOptions): Promise<Response>; | ||
} | ||
export type RouteHandlerCallback = (options: RouteHandlerCallbackOptions) => Promise<Response>; | ||
@@ -106,5 +102,3 @@ /** | ||
*/ | ||
export interface ManualHandlerCallback { | ||
(options: ManualHandlerCallbackOptions): Promise<Response>; | ||
} | ||
export type ManualHandlerCallback = (options: ManualHandlerCallbackOptions) => Promise<Response>; | ||
@@ -134,5 +128,3 @@ /** | ||
export interface HandlerWillStartCallback { | ||
(param: HandlerWillStartCallbackParam): Promise<any>; | ||
} | ||
export type HandlerWillStartCallback = (param: HandlerWillStartCallbackParam) => Promise<any>; | ||
@@ -164,5 +156,3 @@ export interface CacheDidUpdateCallbackParam { | ||
export interface CacheDidUpdateCallback { | ||
(param: CacheDidUpdateCallbackParam): PromiseOrNot<any>; | ||
} | ||
export type CacheDidUpdateCallback = (param: CacheDidUpdateCallbackParam) => PromiseOrNot<any>; | ||
@@ -177,5 +167,3 @@ export interface CacheKeyWillBeUsedCallbackParam { | ||
export interface CacheKeyWillBeUsedCallback { | ||
(param: CacheKeyWillBeUsedCallbackParam): PromiseOrNot<Request | string>; | ||
} | ||
export type CacheKeyWillBeUsedCallback = (param: CacheKeyWillBeUsedCallbackParam) => PromiseOrNot<Request | string>; | ||
@@ -189,5 +177,3 @@ export interface CacheWillUpdateCallbackParam { | ||
export interface CacheWillUpdateCallback { | ||
(param: CacheWillUpdateCallbackParam): PromiseOrNot<any>; | ||
} | ||
export type CacheWillUpdateCallback = (param: CacheWillUpdateCallbackParam) => PromiseOrNot<any>; | ||
@@ -214,5 +200,3 @@ export interface CachedResponseWillBeUsedCallbackParam { | ||
export interface CachedResponseWillBeUsedCallback { | ||
(param: CachedResponseWillBeUsedCallbackParam): PromiseOrNot<any>; | ||
} | ||
export type CachedResponseWillBeUsedCallback = (param: CachedResponseWillBeUsedCallbackParam) => PromiseOrNot<any>; | ||
@@ -227,5 +211,3 @@ export interface FetchDidFailCallbackParam { | ||
export interface FetchDidFailCallback { | ||
(param: FetchDidFailCallbackParam): PromiseOrNot<any>; | ||
} | ||
export type FetchDidFailCallback = (param: FetchDidFailCallbackParam) => PromiseOrNot<any>; | ||
@@ -239,5 +221,3 @@ export interface FetchDidSucceedCallbackParam { | ||
export interface FetchDidSucceedCallback { | ||
(param: FetchDidSucceedCallbackParam): PromiseOrNot<Response>; | ||
} | ||
export type FetchDidSucceedCallback = (param: FetchDidSucceedCallbackParam) => PromiseOrNot<Response>; | ||
@@ -250,5 +230,3 @@ export interface RequestWillFetchCallbackParam { | ||
export interface RequestWillFetchCallback { | ||
(param: RequestWillFetchCallbackParam): PromiseOrNot<Request>; | ||
} | ||
export type RequestWillFetchCallback = (param: RequestWillFetchCallbackParam) => PromiseOrNot<Request>; | ||
@@ -262,5 +240,3 @@ export interface HandlerWillRespondCallbackParam { | ||
export interface HandlerWillRespondCallback { | ||
(param: HandlerWillRespondCallbackParam): PromiseOrNot<Response>; | ||
} | ||
export type HandlerWillRespondCallback = (param: HandlerWillRespondCallbackParam) => PromiseOrNot<Response>; | ||
@@ -274,5 +250,3 @@ export interface HandlerDidErrorCallbackParam { | ||
export interface HandlerDidErrorCallback { | ||
(param: HandlerDidErrorCallbackParam): PromiseOrNot<Response | undefined>; | ||
} | ||
export type HandlerDidErrorCallback = (param: HandlerDidErrorCallbackParam) => PromiseOrNot<Response | undefined>; | ||
@@ -286,5 +260,3 @@ export interface HandlerDidRespondCallbackParam { | ||
export interface HandlerDidRespondCallback { | ||
(param: HandlerDidRespondCallbackParam): PromiseOrNot<any>; | ||
} | ||
export type HandlerDidRespondCallback = (param: HandlerDidRespondCallbackParam) => PromiseOrNot<any>; | ||
@@ -299,5 +271,3 @@ export interface HandlerDidCompleteCallbackParam { | ||
export interface HandlerDidCompleteCallback { | ||
(param: HandlerDidCompleteCallbackParam): PromiseOrNot<any>; | ||
} | ||
export type HandlerDidCompleteCallback = (param: HandlerDidCompleteCallbackParam) => PromiseOrNot<any>; | ||
@@ -304,0 +274,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
113365
2444