REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 3.95 KB
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/react-i18next/index.d.ts
Text
Base64
import i18next, { ReactOptions, i18n, Resource, Namespace, TypeOptions, TFunction, KeyPrefix, } from 'i18next'; import * as React from 'react'; export { Trans, TransProps } from './TransWithoutContext'; export { initReactI18next } from './initReactI18next'; type Subtract<T extends K, K> = Omit<T, keyof K>; export function setDefaults(options: ReactOptions): void; export function getDefaults(): ReactOptions; export function setI18n(instance: i18n): void; export function getI18n(): i18n; export function composeInitialProps(ForComponent: any): (ctx: unknown) => Promise<any>; export function getInitialProps(): { initialI18nStore: { [ns: string]: {}; }; initialLanguage: string; }; export interface ReportNamespaces { addUsedNamespaces(namespaces: Namespace): void; getUsedNamespaces(): string[]; } declare module 'i18next' { interface i18n { reportNamespaces: ReportNamespaces; } } type ObjectOrNever = TypeOptions['allowObjectInHTMLChildren'] extends true ? Record<string, unknown> : never; type ReactI18NextChildren = React.ReactNode | ObjectOrNever; declare module 'react' { interface HTMLAttributes<T> { children?: ReactI18NextChildren; } } type DefaultNamespace = TypeOptions['defaultNS']; export function useSSR(initialI18nStore: Resource, initialLanguage: string): void; export interface UseTranslationOptions<TKPrefix = undefined> { i18n?: i18n; useSuspense?: boolean; keyPrefix?: TKPrefix; bindI18n?: string | false; nsMode?: 'fallback' | 'default'; lng?: string; // other of these options might also work: https://github.com/i18next/i18next/blob/master/index.d.ts#L127 } export type UseTranslationResponse<N extends Namespace, TKPrefix = undefined> = [ TFunction<N, TKPrefix>, i18n, boolean, ] & { t: TFunction<N, TKPrefix>; i18n: i18n; ready: boolean; }; export function useTranslation< N extends Namespace = DefaultNamespace, TKPrefix extends KeyPrefix<N> = undefined >( ns?: N | Readonly<N>, options?: UseTranslationOptions<TKPrefix>, ): UseTranslationResponse<N, TKPrefix>; // Need to see usage to improve this export function withSSR(): <Props>( WrappedComponent: React.ComponentType<Props>, ) => { ({ initialI18nStore, initialLanguage, ...rest }: { initialI18nStore: Resource; initialLanguage: string; } & Props): React.FunctionComponentElement<Props>; getInitialProps: (ctx: unknown) => Promise<any>; }; export interface WithTranslation< N extends Namespace = DefaultNamespace, TKPrefix extends KeyPrefix<N> = undefined > { t: TFunction<N, TKPrefix>; i18n: i18n; tReady: boolean; } export interface WithTranslationProps { i18n?: i18n; useSuspense?: boolean; } export function withTranslation< N extends Namespace = DefaultNamespace, TKPrefix extends KeyPrefix<N> = undefined >( ns?: N, options?: { withRef?: boolean; keyPrefix?: TKPrefix; }, ): < C extends React.ComponentType<React.ComponentProps<any> & WithTranslationProps>, ResolvedProps = JSX.LibraryManagedAttributes< C, Subtract<React.ComponentProps<C>, WithTranslationProps> > >( component: C, ) => React.ComponentType<Omit<ResolvedProps, keyof WithTranslation<N>> & WithTranslationProps>; export interface I18nextProviderProps { children?: React.ReactNode; i18n: i18n; defaultNS?: string | string[]; } export const I18nextProvider: React.FunctionComponent<I18nextProviderProps>; export const I18nContext: React.Context<{ i18n: i18n }>; export interface TranslationProps< N extends Namespace = DefaultNamespace, TKPrefix extends KeyPrefix<N> = undefined > { children: ( t: TFunction<N, TKPrefix>, options: { i18n: i18n; lng: string; }, ready: boolean, ) => React.ReactNode; ns?: N; i18n?: i18n; useSuspense?: boolean; keyPrefix?: TKPrefix; nsMode?: 'fallback' | 'default'; } export function Translation< N extends Namespace = DefaultNamespace, TKPrefix extends KeyPrefix<N> = undefined >(props: TranslationProps<N, TKPrefix>): any;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 12
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
dist
DIR
-
drwxr-xr-x
2026-02-28 00:28:36
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
src
DIR
-
drwxr-xr-x
2026-02-28 00:29:14
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
CHANGELOG.md
39.41 KB
lrw-r--r--
2026-02-28 00:29:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
icu.macro.d.ts
3.03 KB
lrw-r--r--
2026-02-28 00:29:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
icu.macro.js
25.44 KB
lrw-r--r--
2026-02-28 00:28:20
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.d.ts
3.95 KB
lrw-r--r--
2026-02-28 00:29:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
initReactI18next.d.ts
94 B
lrw-r--r--
2026-02-28 00:29:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
1.05 KB
lrw-r--r--
2026-02-28 00:26:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
6.42 KB
lrw-r--r--
2026-02-28 00:29:16
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
react-i18next.js
37.94 KB
lrw-r--r--
2026-02-28 00:28:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
react-i18next.min.js
17.16 KB
lrw-r--r--
2026-02-28 00:28:44
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
10.71 KB
lrw-r--r--
2026-02-28 00:29:22
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
TransWithoutContext.d.ts
1.11 KB
lrw-r--r--
2026-02-28 00:29:32
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tslint.json
438 B
lrw-r--r--
2026-02-28 00:29:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).