Skip to content

Commit 42e7515

Browse files
committed
fix: resolve path typing
1 parent 88f9228 commit 42e7515

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.changeset/solid-frogs-march.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"astro-loader-i18n": patch
3+
---
4+
5+
Fix resolvePath typing

libs/astro-loader-i18n/src/astro-loader-i18n.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,9 @@ export { localized } from "./schemas/i18n-content-schema";
44
export { extendI18nLoaderSchema, i18nLoaderSchema } from "./schemas/i18n-loader-schema";
55
export { i18nPropsAndParams, i18nProps } from "./props-and-params/i18n-props-and-params";
66
export { createI18nCollection } from "./collections/create-i18n-collection";
7-
export { resolvePath } from "astro-utils-i18n";
7+
8+
import { resolvePath as _resolvePath } from "astro-utils-i18n";
9+
10+
type resolvePathType = (...paths: Array<string | number | undefined>) => string;
11+
12+
export const resolvePath: resolvePathType = _resolvePath;

0 commit comments

Comments
 (0)