intor 2.0.1 → 2.0.2
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/next/index.d.cts +1 -3
- package/dist/next/index.d.ts +1 -3
- package/package.json +1 -1
package/dist/next/index.d.cts
CHANGED
|
@@ -163,11 +163,9 @@ type IntorMessages = void;
|
|
|
163
163
|
declare function useIntor<M = IntorMessages>(): TranslatorMethods<M>;
|
|
164
164
|
declare function useIntor<M = IntorMessages, K extends PreKey<M> = PreKey<M>>(preKey: M extends void ? string : K): ScopedTranslatorMethods<M, K>;
|
|
165
165
|
|
|
166
|
-
interface LinkProps extends Omit<LinkProps$1, "href"> {
|
|
166
|
+
interface LinkProps extends Omit<LinkProps$1, "href">, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href"> {
|
|
167
167
|
href?: Url;
|
|
168
168
|
locale?: string;
|
|
169
|
-
children: React.ReactNode;
|
|
170
|
-
onClick?: React.AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
|
|
171
169
|
}
|
|
172
170
|
/**
|
|
173
171
|
* Localized Link component wrapping Next.js Link.
|
package/dist/next/index.d.ts
CHANGED
|
@@ -163,11 +163,9 @@ type IntorMessages = void;
|
|
|
163
163
|
declare function useIntor<M = IntorMessages>(): TranslatorMethods<M>;
|
|
164
164
|
declare function useIntor<M = IntorMessages, K extends PreKey<M> = PreKey<M>>(preKey: M extends void ? string : K): ScopedTranslatorMethods<M, K>;
|
|
165
165
|
|
|
166
|
-
interface LinkProps extends Omit<LinkProps$1, "href"> {
|
|
166
|
+
interface LinkProps extends Omit<LinkProps$1, "href">, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "href"> {
|
|
167
167
|
href?: Url;
|
|
168
168
|
locale?: string;
|
|
169
|
-
children: React.ReactNode;
|
|
170
|
-
onClick?: React.AnchorHTMLAttributes<HTMLAnchorElement>["onClick"];
|
|
171
169
|
}
|
|
172
170
|
/**
|
|
173
171
|
* Localized Link component wrapping Next.js Link.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"description": "A modular and extensible i18n core designed for TypeScript and JavaScript projects. Intor enables custom translation logic with support for both frontend and backend environments, featuring runtime configuration, caching, adapters, and message loaders.",
|
|
5
5
|
"author": "Yiming Liao",
|
|
6
6
|
"license": "MIT",
|