diff --git a/locales/generateDTS.js b/locales/generateDTS.js index bc98276325..7369dfbb47 100644 --- a/locales/generateDTS.js +++ b/locales/generateDTS.js @@ -51,11 +51,7 @@ export default function generateDTS() { ts.NodeFlags.Const | ts.NodeFlags.Ambient | ts.NodeFlags.ContextFlags, ), ), - ts.factory.createExportAssignment( - undefined, - true, - ts.factory.createIdentifier('locales'), - ), + ts.factory.createExportDefault(ts.factory.createIdentifier('locales')), ]; const printed = ts.createPrinter({ newLine: ts.NewLineKind.LineFeed, diff --git a/locales/index.d.ts b/locales/index.d.ts index b9c3340e82..31d47d59b8 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -2159,4 +2159,4 @@ export interface Locale { declare const locales: { [lang: string]: Locale; }; -export = locales; +export default locales;