-
-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathnext-pwa.d.ts
More file actions
31 lines (29 loc) · 934 Bytes
/
next-pwa.d.ts
File metadata and controls
31 lines (29 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
declare module 'next-pwa' {
import { NextConfig } from 'next';
interface PWAConfig {
dest?: string;
register?: boolean;
skipWaiting?: boolean;
disable?: boolean;
fallbacks?: {
document?: string;
image?: string;
audio?: string;
video?: string;
font?: string;
};
runtimeCaching?: Array<{
urlPattern: RegExp | string;
handler: 'CacheFirst' | 'NetworkFirst' | 'StaleWhileRevalidate' | 'NetworkOnly' | 'CacheOnly';
options?: {
cacheName?: string;
networkTimeoutSeconds?: number;
expiration?: {
maxEntries?: number;
maxAgeSeconds?: number;
};
};
}>;
}
export default function withPWA(config: PWAConfig): (nextConfig: NextConfig) => NextConfig;
}