revine 1.0.5 → 1.0.6

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.
@@ -1,2 +1,6 @@
1
+ import { createBrowserRouter } from "react-router-dom";
2
+ declare module "revine/routing" {
3
+ const router: ReturnType<typeof createBrowserRouter>;
4
+ }
1
5
  export {};
2
6
  //# sourceMappingURL=routing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/runtime/routing.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/runtime/routing.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,QAAQ,gBAAgB,CAAC;IACvB,MAAM,MAAM,EAAE,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;CAC7D;AAED,OAAO,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revine",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "A react framework, but better.",
5
5
  "license": "MIT",
6
6
  "author": "Rachit Bharadwaj",
@@ -1,4 +1,13 @@
1
- // This module is intentionally empty.
2
- // `revine/routing` is a virtual module resolved by the Revine Vite plugin at build time.
1
+ // This module is intentionally empty at the source level.
2
+ // `revine/routing` is a virtual module resolved by the Revine Vite plugin at build/dev time.
3
3
  // The actual router is injected via the plugin's resolveId/load hooks.
4
- export {};
4
+ //
5
+ // The type declaration below tells TypeScript that `router` exists on this module
6
+ // so consumers don't get ts(2305) errors.
7
+ import { createBrowserRouter } from "react-router-dom";
8
+
9
+ declare module "revine/routing" {
10
+ export const router: ReturnType<typeof createBrowserRouter>;
11
+ }
12
+
13
+ export {};
@@ -0,0 +1,2 @@
1
+ /// <reference types="vite/client" />
2
+ /// <reference types="revine/routing" />