-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: TS4058 - Return type of exported function has or is using name X…
… from external module Y but cannot be named
- Loading branch information
Showing
3 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
export { default as iso6391X, type LanguageCode, type LanguageOption } from './iso-639-1-x.js'; | ||
export { default as parse, type TranslationOption } from './parse.js'; | ||
export { | ||
default as parse, | ||
type TranslationOption, | ||
type TranslationOptionFrom, | ||
type TranslationOptionFromLanguage, | ||
type TranslationOptionFromText, | ||
type TranslationOptionTo, | ||
type TranslationOptionToText, | ||
} from './parse.js'; | ||
export { default as translate, type TranslateOptions } from './translate.js'; | ||
export { default as validate } from './validate.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
export type { TranslateErrorCodes } from './shared/index.js'; | ||
export type { ResponseBody as TranslateRawBody, TranslateErrorCodes } from './shared/index.js'; | ||
|
||
export type { LanguageCode, LanguageOption, TranslateOptions, TranslationOption } from './core/index.js'; | ||
export type { | ||
LanguageCode, | ||
LanguageOption, | ||
TranslateOptions, | ||
TranslationOption, | ||
TranslationOptionFrom, | ||
TranslationOptionFromLanguage, | ||
TranslationOptionFromText, | ||
TranslationOptionTo, | ||
TranslationOptionToText, | ||
} from './core/index.js'; | ||
export { iso6391X, translate as default } from './core/index.js'; |