From 6ae47bfeb81ab2376c95f393a1ab26c202acbbcb Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Fri, 14 Jul 2023 19:33:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20d.ts=E7=94=9F=E6=88=90=E6=99=82=E3=81=AB?= =?UTF-8?q?export=20default=E3=82=92=E7=94=9F=E6=88=90=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- locales/generateDTS.js | 6 +----- locales/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) 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;