fimo 0.3.5 → 0.3.6-staging.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.
package/dist/cli/bundle.json
CHANGED
|
@@ -7,9 +7,24 @@ export interface FimoReactRouterRoute {
|
|
|
7
7
|
children?: FimoReactRouterRoute[];
|
|
8
8
|
[key: string]: unknown;
|
|
9
9
|
}
|
|
10
|
+
/**
|
|
11
|
+
* Structural minimum a route entry must satisfy. Deliberately WITHOUT an
|
|
12
|
+
* index signature so framework types like React Router's `RouteConfigEntry`
|
|
13
|
+
* (which has none) remain assignable, and generic so callers get their own
|
|
14
|
+
* entry type back — `fimoRoutes(routes) satisfies RouteConfig` must keep
|
|
15
|
+
* compiling in project code.
|
|
16
|
+
*/
|
|
17
|
+
interface FimoRouteShape {
|
|
18
|
+
id?: string;
|
|
19
|
+
path?: string;
|
|
20
|
+
file?: string;
|
|
21
|
+
index?: boolean;
|
|
22
|
+
children?: FimoRouteShape[];
|
|
23
|
+
}
|
|
10
24
|
export interface FimoRoutesOptions {
|
|
11
25
|
config?: Pick<FimoConfig, 'i18n'>;
|
|
12
26
|
rootDir?: string;
|
|
13
27
|
}
|
|
14
|
-
export declare function fimoRoutes<
|
|
28
|
+
export declare function fimoRoutes<T extends FimoRouteShape>(routes: readonly T[], options?: FimoRoutesOptions): T[];
|
|
29
|
+
export {};
|
|
15
30
|
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/runtime/react-router/routes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../src/runtime/react-router/routes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAEjE,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAClC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;GAMG;AACH,UAAU,cAAc;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,cAAc,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,EAAE,OAAO,GAAE,iBAAsB,GAAG,CAAC,EAAE,CA4B/G"}
|
package/package.json
CHANGED
package/release.json
CHANGED