Comparing version 1.3.51 to 1.3.52
@@ -106,3 +106,3 @@ import { Locale } from 'date-fns'; | ||
} | ||
export interface RosettyReturn<T> { | ||
export interface RosettyReturn<T extends AnyObject> { | ||
changeLang: (lang: string) => void; | ||
@@ -176,3 +176,3 @@ languages: string[]; | ||
export declare const locales: Locales; | ||
export declare const rosetty: <T>(initialConfig: Record<string, Language>, defaultLang?: string) => RosettyReturn<T>; | ||
export declare const rosetty: <T extends AnyObject>(initialConfig: Record<string, Language>, defaultLang?: string) => RosettyReturn<T>; | ||
export {}; |
{ | ||
"version": "1.3.51", | ||
"version": "1.3.52", | ||
"license": "MIT", | ||
@@ -61,3 +61,3 @@ "main": "dist/index.js", | ||
"resolutions": { | ||
"typescript": "4.7.4" | ||
"typescript": "4.8.2" | ||
}, | ||
@@ -79,3 +79,3 @@ "devDependencies": { | ||
"tslib": "2.4.0", | ||
"typescript": "4.7.4" | ||
"typescript": "4.8.2" | ||
}, | ||
@@ -82,0 +82,0 @@ "dependencies": { |
@@ -138,3 +138,3 @@ /* eslint-disable @typescript-eslint/ban-ts-comment */ | ||
export interface RosettyReturn<T> { | ||
export interface RosettyReturn<T extends AnyObject> { | ||
changeLang: (lang: string) => void; | ||
@@ -249,3 +249,3 @@ languages: string[]; | ||
export const rosetty = <T>( | ||
export const rosetty = <T extends AnyObject>( | ||
initialConfig: Record<string, Language>, | ||
@@ -252,0 +252,0 @@ defaultLang?: string |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79520