Hi after upgrading to 0.13.0 my custom TS type definition file is overwritten.
Command: microbundle --no-sourcemap --no-compress --jsx React.createElement
Repository: https://github.com/StarpTech/next-localization
Previous:
interfaceI18n<T>{/** Get/Set the language key */locale(lang?: string): string;/** Define or extend the language table */set(lang: string,table: T): void;/** Get the table of translations for a language */table(lang: string): T|void;/** Retrieve a translation segment for the current language */t<XextendsRecord<string,any>|any[]>(key: string|(string|number)[],params?: X,lang?: string): string;withPlural<T>(pluralOptions?: object): <XextendsRecord<string,any>|any[]>(key: string|(string|number)[],params?: X,lang?: string)=>string;}exportfunctionuseI18n<T>(): I18n<T>;exportfunctionI18n<T>(table?: T): I18n<T>;exportfunctionI18nProvider<Textendsobject>(props: ProviderProps<T>): React.ReactElement;interfaceProviderProps<T>{lngDict?: T;locale: string;i18nInstance?: I18n<T>;children: JSX.Element;}interfaceII18nProvider<T>extendsReact.FC<ProviderProps<T>>{}After
export{defaultasuseI18n}from"./hooks/use-i18n";export{I18n,defaultasI18nProvider}from"./i18n";
Hi after upgrading to 0.13.0 my custom TS type definition file is overwritten.
Command:
microbundle --no-sourcemap --no-compress --jsx React.createElementRepository: https://github.com/StarpTech/next-localization
Previous:
After