From 40205ec081419867ed3b272d770bcada23edd070 Mon Sep 17 00:00:00 2001 From: keitakn Date: Sat, 7 Jan 2023 23:32:10 +0900 Subject: [PATCH] =?UTF-8?q?:shirt:=20#238=20Formatter=E3=81=AE=E9=81=A9?= =?UTF-8?q?=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/constants/httpStatusCode.ts | 3 ++- src/features/locale.ts | 2 +- src/features/url.ts | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/constants/httpStatusCode.ts b/src/constants/httpStatusCode.ts index ac7b2aac..f1f5a3a1 100644 --- a/src/constants/httpStatusCode.ts +++ b/src/constants/httpStatusCode.ts @@ -11,4 +11,5 @@ export const httpStatusCode = { serviceUnavailable: 503, } as const; -export type HttpStatusCode = typeof httpStatusCode[keyof typeof httpStatusCode]; +export type HttpStatusCode = + (typeof httpStatusCode)[keyof typeof httpStatusCode]; diff --git a/src/features/locale.ts b/src/features/locale.ts index 735bae6f..05bd2bd1 100644 --- a/src/features/locale.ts +++ b/src/features/locale.ts @@ -2,7 +2,7 @@ import { languages, type Language } from './language'; const locales = languages; -export type Locale = typeof locales[number]; +export type Locale = (typeof locales)[number]; const isLocale = (value: unknown): value is Locale => { if (typeof value !== 'string') { diff --git a/src/features/url.ts b/src/features/url.ts index eadb091b..ecb33e0e 100644 --- a/src/features/url.ts +++ b/src/features/url.ts @@ -79,7 +79,7 @@ export const i18nUrlList: I18nUrlList = { }, }; -export type AppUrl = typeof appUrlList[keyof typeof appUrlList]; +export type AppUrl = (typeof appUrlList)[keyof typeof appUrlList]; const defaultUrl = 'http://localhost:2222/api';