Skip to content

Commit

Permalink
fix: export module
Browse files Browse the repository at this point in the history
  • Loading branch information
ParvinEyvazov committed Oct 9, 2024
1 parent fce71d2 commit 4762e7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "3.2.1",
"version": "3.2.2",
"license": "MIT",
"main": "dist/index.js",
"description": "Translate your JSON file or object into another languages with Google Translate API",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ export interface translatedObject {
}

export { TranslationModule };
export type TranslationModules = TranslationModulesTemp;
export { TranslationModules } from './modules/modules';
export type TranslationConfig = TranslationConfigTemp;
4 changes: 2 additions & 2 deletions src/modules/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
GTPTranslateLanguages,
} from './languages';

export type TranslationModules = {
export type TranslationModulesType = {
[key: string]: TranslationModule;
};

Expand All @@ -41,7 +41,7 @@ export interface TranslationModule {
onComplete?: Function;
}

export const TranslationModules: TranslationModules = {
export const TranslationModules: TranslationModulesType = {
google: {
name: 'Google Translate',
altName: `[FREE] Google Translate (104 languages)`,
Expand Down

0 comments on commit 4762e7a

Please sign in to comment.