@markless/router 0.3.3 → 0.5.0

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.
package/dist/vite.d.ts CHANGED
@@ -1,11 +1,15 @@
1
1
  import { PluginOption, UserConfig } from "vite";
2
-
3
2
  //#region src/vite/index.d.ts
4
- interface MarklessRouterOptions {
3
+ export interface MarklessRouterOptions {
5
4
  mode?: 'path' | 'hash';
6
5
  nitro?: boolean;
6
+ /**
7
+ * `false` downloads nothing for a link before it is clicked: no prefetch on hover, press,
8
+ * focus or idle. Links still navigate. `<Link prefetch={false}>` does the same for one link.
9
+ * Prefetches only ever request page routes, with a `Purpose: prefetch` header; endpoints are never prefetched.
10
+ */
11
+ prefetch?: boolean;
7
12
  }
8
- declare function router(options?: MarklessRouterOptions): PluginOption[];
9
- type WatchIgnorePattern = Extract<NonNullable<NonNullable<NonNullable<UserConfig['server']>['watch']>['ignored']>, readonly unknown[]>[number];
10
- //#endregion
11
- export { MarklessRouterOptions, WatchIgnorePattern, router };
13
+ export declare function router(options?: MarklessRouterOptions): PluginOption[];
14
+ export type WatchIgnorePattern = Extract<NonNullable<NonNullable<NonNullable<UserConfig['server']>['watch']>['ignored']>, readonly unknown[]>[number];
15
+ //#endregion