Skip to content

Commit 3d897ce

Browse files
authored
Interfaces
1 parent 0d4d2fc commit 3d897ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ function main() {
315315

316316
## Interfaces
317317

318-
Interfaces will be used as structurally evaluated types
318+
Interfaces will be used as structurally evaluated types to help with the creation of generic utilities and testing
319319

320320
```typescript
321321
class Foo {
@@ -336,7 +336,7 @@ Classes can optionally guard against changes through the `implements` keyword.
336336

337337
This is purely compile time validation to ensure the class does not stray from the desired interface and can be ommited.
338338

339-
```
339+
```typescript
340340
class Foo implements IFoo {
341341
public read foo(): number { return 42 }
342342
}

0 commit comments

Comments
 (0)