Skip to content

Commit d382f82

Browse files
committed
update docusaurus
1 parent 315a01b commit d382f82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

website/src/pages/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ type ApiEndpoint = `/api/${ApiRoute}`; // Type ApiEndpoint = "/api/users" | "/ap
314314
const userEndpoint: ApiEndpoint = '/api/users';
315315

316316
// ❌ Avoid
317-
const homeTitle = 'translation.homesss.title'; // Type 'string' - Since typo 'homesss', translation doesn't exist and results in runtime error
317+
const homeTitle = 'translation.homesss.title'; // Type 'string' - Typo 'homesss': the translation doesn't exist, leading to a runtime error.
318318
// ✅ Use
319319
type LocaleKeyPages = 'home' | 'about' | 'contact';
320320
type TranslationKey = `translation.${LocaleKeyPages}.${string}`; // Type TranslationKey = `translation.home.${string}` | `translation.about.${string}` | `translation.contact.${string}`

0 commit comments

Comments
 (0)