From 465d8703d9c19fc23f34727b4aad5c349f6930b1 Mon Sep 17 00:00:00 2001 From: orbis Date: Sat, 6 Aug 2022 19:24:02 +0300 Subject: [PATCH] try-one --- lessons/module2/1_TypescriptPart2/homework/easy1.ts | 2 +- lessons/module2/1_TypescriptPart2/homework/easy2.ts | 2 +- lessons/module2/1_TypescriptPart2/homework/easy3.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lessons/module2/1_TypescriptPart2/homework/easy1.ts b/lessons/module2/1_TypescriptPart2/homework/easy1.ts index 938773d6..9bb4c707 100644 --- a/lessons/module2/1_TypescriptPart2/homework/easy1.ts +++ b/lessons/module2/1_TypescriptPart2/homework/easy1.ts @@ -3,7 +3,7 @@ // Нужно заменить FIXME на тип который вычисляется на освове OrderState // eslint-disable-next-line @typescript-eslint/no-explicit-any -type FIXME = any; +type FIXME = OrderState[]; const orderStates = [ "initial", diff --git a/lessons/module2/1_TypescriptPart2/homework/easy2.ts b/lessons/module2/1_TypescriptPart2/homework/easy2.ts index ecf004fe..47f5fa7b 100644 --- a/lessons/module2/1_TypescriptPart2/homework/easy2.ts +++ b/lessons/module2/1_TypescriptPart2/homework/easy2.ts @@ -3,7 +3,7 @@ // Нужно заменить FIXME на тип который достанет из Order все возможные состояния (state) // eslint-disable-next-line @typescript-eslint/no-explicit-any -type FIXME = any; +type FIXME = Order["state"]; type Order = | { diff --git a/lessons/module2/1_TypescriptPart2/homework/easy3.ts b/lessons/module2/1_TypescriptPart2/homework/easy3.ts index 348b8146..120a4b9e 100644 --- a/lessons/module2/1_TypescriptPart2/homework/easy3.ts +++ b/lessons/module2/1_TypescriptPart2/homework/easy3.ts @@ -3,7 +3,7 @@ // Нужно заменить FIXME на соответствующий тип // eslint-disable-next-line @typescript-eslint/no-explicit-any -type FIXME = any; +type FIXME = Record; // eslint-disable-next-line @typescript-eslint/no-explicit-any export const omit = , K extends keyof T>(