22 lines
517 B
TypeScript
22 lines
517 B
TypeScript
declare module 'next-pwa' {
|
|
import { NextConfig } from 'next';
|
|
|
|
interface PWAConfig {
|
|
dest?: string;
|
|
disable?: boolean;
|
|
register?: boolean;
|
|
scope?: string;
|
|
sw?: string;
|
|
runtimeCaching?: any[];
|
|
buildExcludes?: string[];
|
|
publicExcludes?: string[];
|
|
fallbacks?: Record<string, string>;
|
|
cacheOnFrontEndNav?: boolean;
|
|
reloadOnOnline?: boolean;
|
|
[key: string]: any;
|
|
}
|
|
|
|
function withPWA(config?: PWAConfig): (nextConfig: NextConfig) => NextConfig;
|
|
|
|
export = withPWA;
|
|
} |