Skip to content

Commit

Permalink
style: improve typings
Browse files Browse the repository at this point in the history
  • Loading branch information
jy95 committed Apr 11, 2024
1 parent b1cf659 commit 9d0cca6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ import type {
I18N,
} from "./types";

// backends i18next
const localeImport = async (lng: Language, ns: NamespacesLocale) =>
import(`./locales/${lng}/${ns}.json`);

export class FhirDosageUtils {
// Configuration (Immutability has its advantages ...)
config: Config;
Expand Down Expand Up @@ -90,7 +86,8 @@ export class FhirDosageUtils {
backends: [
resourcesToBackend(
// have to cast the function to be webpack / builder friendly
localeImport as any,
async (lng: Language, ns: NamespacesLocale) =>
import(`./locales/${lng}/${ns}.json`),
),
],
},
Expand Down

0 comments on commit 9d0cca6

Please sign in to comment.