diff --git a/src/@types/unhomoglyph/index.d.ts b/src/@types/unhomoglyph/index.d.ts index 3e244d653..4a9d13973 100644 --- a/src/@types/unhomoglyph/index.d.ts +++ b/src/@types/unhomoglyph/index.d.ts @@ -14,7 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +declare function unhomoglyph (s: string): string; + declare module 'unhomoglyph' { - const unhomoglyph: (s: string) => string; export = unhomoglyph; } diff --git a/src/utils.ts b/src/utils.ts index fa8e79394..250258529 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -20,7 +20,7 @@ limitations under the License. * @module utils */ -import * as unhomoglyph from 'unhomoglyph'; +import unhomoglyph from 'unhomoglyph'; /** * Encode a dictionary of query parameters.