Skip to content

Commit 39bc9a3

Browse files
committed
Update types
1 parent 421a7e4 commit 39bc9a3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@forge42/seo-tools",
3-
"version": "1.4.3",
3+
"version": "1.4.4",
44
"private": false,
55
"keywords": ["seo", "remix-seo", "seo-tools", "structured-data", "sitemap", "robots", "canonical", "seo-alternate"],
66
"description": "Framework agnostic set of helpers designed to help you create, maintain and develop your SEO",

src/remix/sitemap.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const convertRemixPathToUrl = (routes: RouteManifest<Route | undefined>, route:
3030
return output === "" ? "/" : output
3131
}
3232

33-
const createExtendedRoutes = (routes: RouteManifest<ServerRoute | undefined>) => {
33+
const createExtendedRoutes = (routes: RouteManifest<Omit<ServerRoute, "children"> | undefined>) => {
3434
return Object.values(routes).map((route) => {
3535
return {
3636
...route,
@@ -45,7 +45,7 @@ const generateRemixSitemapRoutes = async ({
4545
}: {
4646
domain: string
4747
sitemapData?: unknown
48-
routes: RouteManifest<ServerRoute | undefined>
48+
routes: RouteManifest<Omit<ServerRoute, "children"> | undefined>
4949
}) => {
5050
// Add the url to each route
5151
const extendedRoutes = createExtendedRoutes(routes)
@@ -97,7 +97,7 @@ export interface RemixSitemapInfo {
9797
/**
9898
* The routes object from the remix server build. If not provided, the utility will try to import it.
9999
*/
100-
routes: RouteManifest<ServerRoute | undefined>
100+
routes: RouteManifest<Omit<ServerRoute, "children"> | undefined>
101101
}
102102

103103
/**

0 commit comments

Comments
 (0)