@vite-pwa/vitepress 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,6 @@
1
+ import { PwaOptions } from "./types.mjs";
2
+ import { VitePWAStrategy } from "@unplugin-pwa/core";
3
+ import { ExternalPWAOptions } from "@unplugin-pwa/vite/config/types";
4
+ import { SWType } from "@vite-pwa/workbox-build/types";
5
+ export type VitePressExternalPWAOptions<UserStrategy extends VitePWAStrategy, T extends SWType> = ExternalPWAOptions<UserStrategy, T, PwaOptions<UserStrategy, T>>;
6
+ export declare function definePwaConfig<UserStrategy extends VitePWAStrategy, T extends SWType>(config: Partial<VitePressExternalPWAOptions<UserStrategy, T>>): Partial<VitePressExternalPWAOptions<UserStrategy, T>>;
@@ -0,0 +1,5 @@
1
+ // src/config.ts
2
+ function definePwaConfig(config) {
3
+ return config;
4
+ }
5
+ export { definePwaConfig };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vite-pwa/vitepress",
3
3
  "type": "module",
4
- "version": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "description": "Zero-config PWA for VitePress",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -22,6 +22,7 @@
22
22
  "sideEffects": false,
23
23
  "exports": {
24
24
  ".": "./dist/index.mjs",
25
+ "./config": "./dist/config.mjs",
25
26
  "./types": {
26
27
  "types": "./dist/index.d.mts"
27
28
  },