From 22ee7b0d870c8f97f59a9074b0784270cee31f6d Mon Sep 17 00:00:00 2001 From: Marat Date: Fri, 7 Nov 2025 11:51:28 +1300 Subject: [PATCH] fix typos --- modules/25-types/60-structural-typing/en/EXERCISE.md | 2 +- modules/25-types/60-structural-typing/ru/EXERCISE.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/25-types/60-structural-typing/en/EXERCISE.md b/modules/25-types/60-structural-typing/en/EXERCISE.md index 6a9949a5..47b023f4 100644 --- a/modules/25-types/60-structural-typing/en/EXERCISE.md +++ b/modules/25-types/60-structural-typing/en/EXERCISE.md @@ -1,5 +1,5 @@ -Describe the `DataState` state type and the `LoadingStatus` enumeration. Then implement a `handleData()` function that takes `DataState` as input and returns a string depending on the state: `loading...` at `LoadingStatus.loading`, `error` at `LoadingStatus.error`, a string from the numeric field `data` at `LoadingStatus.success`. If the status is not included in the enumeration, the function returns `unknown`. +Describe the `DataState` state type and the `LoadingStatus` enumeration. Then implement a `handleData()` function that takes `DataState` as input and returns a string depending on the state: `loading...` at `LoadingStatus.Loading`, `error` at `LoadingStatus.Error`, a string from the numeric field `data` at `LoadingStatus.Success`. If the status is not included in the enumeration, the function returns `unknown`. ```typescript const loading: DataState = { status: LoadingStatus.Loading }; diff --git a/modules/25-types/60-structural-typing/ru/EXERCISE.md b/modules/25-types/60-structural-typing/ru/EXERCISE.md index 0b751f32..be080549 100644 --- a/modules/25-types/60-structural-typing/ru/EXERCISE.md +++ b/modules/25-types/60-structural-typing/ru/EXERCISE.md @@ -1,5 +1,5 @@ -Опишите тип состояния `DataState` и перечисление `LoadingStatus`. Затем реализуйте функцию `handleData()`, которая принимает на вход `DataState` и возвращает строку в зависимости от состояния: `loading...` при `LoadingStatus.loading`, `error` при `LoadingStatus.error`, строку из числового поля `data` при `LoadingStatus.success`. Если статус не входит в перечисление, функция возвращает `unknown`. +Опишите тип состояния `DataState` и перечисление `LoadingStatus`. Затем реализуйте функцию `handleData()`, которая принимает на вход `DataState` и возвращает строку в зависимости от состояния: `loading...` при `LoadingStatus.Loading`, `error` при `LoadingStatus.Error`, строку из числового поля `data` при `LoadingStatus.Success`. Если статус не входит в перечисление, функция возвращает `unknown`. ```typescript const loading: DataState = { status: LoadingStatus.Loading };