Skip to content

Commit 213e006

Browse files
committed
chore: self-review
1 parent 4a96afc commit 213e006

File tree

23 files changed

+50
-47
lines changed

23 files changed

+50
-47
lines changed

modules/10-basics/10-hello-world/en/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
As is tradition, we'll start by writing a 'Hello, World!' program. The program will print the following text:
23

34
<pre class='hexlet-basics-output'>

modules/10-basics/10-hello-world/en/data.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ name: Hello, World!
33
tips:
44
- |
55
[Repl for experimenting with TypeScript](https://www.typescriptlang.org/play)
6-
- >
7-
[TypeScript installation guide](https://github.com/Hexlet/ru-instructions/blob/main/typescript.md)
86
- |
97
[strict in tsconfig](https://www.typescriptlang.org/tsconfig#strict)
108
- >

modules/10-basics/20-typescript-as-a-second-language/en/data.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ tips:
66
- >
77
[TypeScript boilerplate](https://github.com/hexlet-boilerplates/typescript-package)
88
- >
9-
[Playground with the ability to see the result of TypeScript to JavaScript transpilation](https://www.typescriptlang.org/play)
9+
[Playground with the ability
10+
to see the result of TypeScript to JavaScript transpilation](https://www.typescriptlang.org/play)
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
name: Named functions
2+
name: Named functions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
Write a function that returns an array of even numbers from the array `numbers`.
2+
Write a function that returns an array of even numbers from the array `numbers`.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
Implement a `fail()` function that throws any exception. Write its return type explicitly.
2+
Implement a `fail()` function that throws any exception. Write its return type explicitly.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
---
22
name: Function typing
33
description: |
4-
Most of the tasks of function typing are related to the correct description of input parameters and return values, which can be quite complex. This also includes peculiarities of working with rest and destructuring.
4+
Most of the tasks of function typing are related to the correct description of input parameters and return values, which can be quite complex. This also includes peculiarities of working with rest and destructuring.

modules/25-types/60-structural-typing/en/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
In JavaScript, it is possible to work with objects and classes in the same way. You don't need to rely on inheritance or interfaces. You only need the expected fields and methods. This approach is called duck typing. What walks like a duck and quacks like a duck is a duck:
43

54
```javascript

modules/25-types/70-variability/en/EXERCISE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
32
Implement the function `applyTransactions(wallet)` and types `Transaction`, `Wallet`. `Wallet` contains a list of transactions as an array of elements of type `Transaction` and a numeric balance. `Transaction` contains an `apply` method that accepts a balance and returns a new balance.
43

54
The `applyTransactions(wallet)` function must take an argument of type `Wallet` and return the balance after the entire transaction list has been applied. In case of an error in one of the transactions, it should return the original balance and not continue applying transactions.

modules/25-types/70-variability/en/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
When we assign a value or pass arguments to a function call, TypeScript checks the types for compatibility. When we pass arguments to a function, the check is performed on both the parameter types and the return types.
23

34
If we pass a function that returns a number as a callback to a sorting function that expects a return value of -1 | 0 | 1, we'll get an error: Type 'number' is not assignable to type '0 | 1 | -1':

0 commit comments

Comments
 (0)