-
-
Notifications
You must be signed in to change notification settings - Fork 325
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Is your feature request related to a problem? Please describe.
Export the return type of useTranslations as a interface or type so i can use it as a function parameter type
Describe the solution you'd like
Export the return type
interface useTranslationsProps {
(key: string, values?: Record<string, string | number | boolean | Date | null | undefined> | undefined, formats?: Partial<Formats> | undefined): string;
rich: (key: string, values?: Record<string, string | number | boolean | Date | ((children: ReactNode) => ReactNode) | null | undefined> | undefined, formats?: Partial<Formats> | undefined) => string | ReactElement | ReactNodeArray;
raw(key: string): any;
}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request