vike-lite 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +13 -1
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -9,6 +9,16 @@ type PageContext<Data = unknown> = {
9
9
  is500?: boolean;
10
10
  errorMessage?: string;
11
11
  };
12
+ type DataAsync<Data = unknown> = (pageContext: PageContext) => Promise<Data>;
13
+ type DataSync<Data = unknown> = (pageContext: PageContext) => Data;
14
+ type Route = {
15
+ path: string;
16
+ page: string;
17
+ layout?: string;
18
+ head?: string;
19
+ hasData?: boolean;
20
+ hasTitle?: boolean;
21
+ };
12
22
  type Manifest = Record<string, {
13
23
  file: string;
14
24
  css?: string[];
@@ -50,4 +60,6 @@ declare module 'virtual:routes' {
50
60
  declare module 'virtual:client-manifest' {
51
61
  const manifest: Manifest;
52
62
  export default manifest;
53
- }
63
+ }
64
+ //#endregion
65
+ export { DataAsync, DataSync, PageContext, Route };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike-lite",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",