Skip to content

Commit

Permalink
👕 #238 Formatterの適応
Browse files Browse the repository at this point in the history
  • Loading branch information
keitakn committed Jan 7, 2023
1 parent 120e43d commit 40205ec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/constants/httpStatusCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
2 changes: 1 addition & 1 deletion src/features/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
2 changes: 1 addition & 1 deletion src/features/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 40205ec

Please sign in to comment.