planning
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s

This commit is contained in:
2024-10-14 09:15:30 +02:00
parent bcba00a730
commit 6e64e138e2
21059 changed files with 2317811 additions and 1 deletions

24
node_modules/react-polyglot/src/translate.d.ts generated vendored Normal file
View File

@@ -0,0 +1,24 @@
// Type definitions for react-polyglot v0.4.0
// Typescript version: 2.8
import { InterpolationOptions } from 'node-polyglot'
import { ComponentType } from 'react'
export type t = (
/** The key of the phrase to translate. */
phrase: string,
/** The options accepted by `polyglot.t`. */
options?: number | InterpolationOptions
) => string
export interface TranslateProps {
/** Function to get translated phrase. */
t: t
}
/** Wrap your components with `translate` to get a prop `t` passed in. */
declare const translate = () => <T extends object>(
Component: ComponentType<T>
) => ComponentType<T & TranslateProps>(Component)
export default translate