@eide/uniformgen 0.1.8 → 0.1.9
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.
|
@@ -647,7 +647,7 @@ export function useGetEntitiesRoutes(
|
|
|
647
647
|
/**
|
|
648
648
|
* List of model keys that support route resolution
|
|
649
649
|
*/
|
|
650
|
-
export const ROUTABLE_MODELS = [
|
|
650
|
+
export const ROUTABLE_MODELS = [${modelKeys.map(k => `'${k}'`).join(', ')}] as const;
|
|
651
651
|
|
|
652
652
|
/**
|
|
653
653
|
* Type for routable model keys
|
|
@@ -873,7 +873,7 @@ export async function getEntitiesRoutes(
|
|
|
873
873
|
/**
|
|
874
874
|
* List of model keys that support route resolution
|
|
875
875
|
*/
|
|
876
|
-
export const ROUTABLE_MODELS = [
|
|
876
|
+
export const ROUTABLE_MODELS = [${modelKeys.map(k => `'${k}'`).join(', ')}] as const;
|
|
877
877
|
|
|
878
878
|
/**
|
|
879
879
|
* Type for routable model keys
|
|
@@ -1109,7 +1109,7 @@ export function useResolveEntities(
|
|
|
1109
1109
|
/**
|
|
1110
1110
|
* List of model keys that support content resolution
|
|
1111
1111
|
*/
|
|
1112
|
-
export const ROUTABLE_MODELS = [
|
|
1112
|
+
export const ROUTABLE_MODELS = [${modelKeys.map(k => `'${k}'`).join(', ')}] as const;
|
|
1113
1113
|
|
|
1114
1114
|
/**
|
|
1115
1115
|
* Type for routable model keys
|
|
@@ -1354,7 +1354,7 @@ export async function resolveEntities(
|
|
|
1354
1354
|
/**
|
|
1355
1355
|
* List of model keys that support content resolution
|
|
1356
1356
|
*/
|
|
1357
|
-
export const ROUTABLE_MODELS = [
|
|
1357
|
+
export const ROUTABLE_MODELS = [${modelKeys.map(k => `'${k}'`).join(', ')}] as const;
|
|
1358
1358
|
|
|
1359
1359
|
/**
|
|
1360
1360
|
* Type for routable model keys
|
package/package.json
CHANGED