Skip to content

Commit aee08b3

Browse files
committed
Apply formatting fixes
1 parent 7e21685 commit aee08b3

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@
3232

3333
## Prerequisites
3434

35-
- [Programming Foundations](https://github.com/epicweb-dev/programming-foundations) workshop
35+
- [Programming Foundations](https://github.com/epicweb-dev/programming-foundations)
36+
workshop
3637
- [Structured Data](https://github.com/epicweb-dev/structured-data) workshop
37-
- [Type Safety](https://github.com/epicweb-dev/type-safety) workshop (or equivalent knowledge)
38+
- [Type Safety](https://github.com/epicweb-dev/type-safety) workshop (or
39+
equivalent knowledge)
3840
- Understanding of interfaces and type annotations
3941

4042
## Pre-workshop Resources

exercises/06.composition-vs-inheritance/FINISHED.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ flexibility.
2121

2222
<callout-info>
2323
OOP is a tool, not a religion. Many successful TypeScript codebases use a mix
24-
of OOP and functional patterns. Use the right tool for each situation—sometimes
25-
that's a class, sometimes it's a function, and often it's a combination.
24+
of OOP and functional patterns. Use the right tool for each
25+
situation—sometimes that's a class, sometimes it's a function, and often it's
26+
a combination.
2627
</callout-info>
2728

2829
Congratulations! You've completed the Object-Oriented TypeScript workshop! You

exercises/README.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class ShoppingCart {
4040
```ts
4141
type Cart = readonly Product[]
4242
const addItem = (cart: Cart, product: Product): Cart => [...cart, product]
43-
const getTotal = (cart: Cart): number => cart.reduce((sum, p) => sum + p.price, 0)
43+
const getTotal = (cart: Cart): number =>
44+
cart.reduce((sum, p) => sum + p.price, 0)
4445
```
4546

4647
**Both are valid.** OOP excels at encapsulation and polymorphism. FP excels at

0 commit comments

Comments
 (0)