@koine/i18n 2.0.0-beta.120 → 2.0.0-beta.121

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.
@@ -1,3 +1,3 @@
1
1
  import type { I18nCompiler } from "../../compiler/types";
2
- declare const _default: ({}: I18nCompiler.AdapterArg<"js">) => string;
2
+ declare const _default: ({ routes: { dynamicRoutes, staticRoutes } }: I18nCompiler.AdapterArg<"js">) => string;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import type { I18nCompiler } from "../../compiler/types";
2
- declare const _default: ({}: I18nCompiler.AdapterArg<"js">) => string;
2
+ declare const _default: ({ routes: { dynamicRoutes, staticRoutes }, }: I18nCompiler.AdapterArg<"js">) => string;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import type { I18nCompiler } from "../../compiler/types";
2
- declare const _default: ({ config: { single }, options: { routes: { localeParamName }, }, }: I18nCompiler.AdapterArg<"next">) => string;
2
+ declare const _default: ({ config: { single }, options: { routes: { localeParamName }, }, routes: { dynamicRoutes }, }: I18nCompiler.AdapterArg<"next">) => string;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import type { I18nCompiler } from "../../compiler/types";
2
- declare const _default: ({ options: { routes: { localeParamName }, }, }: I18nCompiler.AdapterArg<"next">) => string;
2
+ declare const _default: ({ routes: { dynamicRoutes }, options: { routes: { localeParamName }, }, }: I18nCompiler.AdapterArg<"next">) => string;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
1
  import type { I18nCompiler } from "../../compiler/types";
2
- declare const _default: ({}: I18nCompiler.AdapterArg<"next">) => string;
2
+ declare const _default: ({ routes: { dynamicRoutes } }: I18nCompiler.AdapterArg<"next">) => string;
3
3
  export default _default;
@@ -4,5 +4,5 @@ type NextConfigFn = (phase: string, context?: any) => Promise<NextConfig> | Next
4
4
  export type WithI18nAsyncOptions = NextConfig & {
5
5
  i18nCompiler?: I18nCompilerOptions;
6
6
  };
7
- export declare let withI18nAsync: <TAdapterName extends "js" | "react" | "next" | "next-translate">(config?: WithI18nAsyncOptions) => NextConfigFn;
7
+ export declare let withI18nAsync: (config?: WithI18nAsyncOptions) => NextConfigFn;
8
8
  export {};
@@ -1,6 +1,6 @@
1
1
  import type { NextConfig } from "next";
2
- import type { I18nCompilerReturn } from "../compiler";
3
- export declare let tweakNextConfig: (options: I18nCompilerReturn, nextConfig: NextConfig) => NextConfig;
2
+ import type { I18nCompilerOptions, I18nCompilerReturn } from "../compiler";
3
+ export declare let tweakNextConfig: (options: I18nCompilerOptions, result: I18nCompilerReturn, nextConfig: NextConfig) => NextConfig;
4
4
  export declare let getRedirects: (prevRedirects: NextConfig["redirects"], i18nResult: I18nCompilerReturn) => Promise<import("next/dist/lib/load-custom-routes").Redirect[]>;
5
5
  export declare let getRewrites: (prevRewrites: NextConfig["rewrites"], i18nResult: I18nCompilerReturn) => Promise<{
6
6
  beforeFiles: import("next/dist/lib/load-custom-routes").Rewrite[];
@@ -1,5 +1,5 @@
1
1
  import type { NextConfig } from "next";
2
- import { type I18nCompilerOptions } from "../compiler";
2
+ import type { I18nCompilerOptions } from "../compiler";
3
3
  export type WithI18nOptions = NextConfig & {
4
4
  i18nCompiler?: I18nCompilerOptions;
5
5
  };
@@ -1,3 +1,3 @@
1
1
  import type { I18nCompiler } from "../../compiler/types";
2
- declare const _default: ({}: I18nCompiler.AdapterArg<"react">) => string;
2
+ declare const _default: ({ routes: { dynamicRoutes }, }: I18nCompiler.AdapterArg<"react">) => string;
3
3
  export default _default;