Skip to content

Commit 5e280ce

Browse files
authored
Remove the note about generators being unavailable
Generators can be transpiled to ES3 and ES5 since TS 2.3: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-3.html#generators
1 parent bfffbbd commit 5e280ce

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docs/generators.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
## Generators
22

3-
> NOTE: You cannot use generators in TypeScript in a meaningful way (the ES5 emitter is in progress). However, that will change soon so we still have this chapter.
4-
53
`function *` is the syntax used to create a *generator function*. Calling a generator function returns a *generator object*. The generator object just follows the [iterator][iterator] interface (i.e. the `next`, `return` and `throw` functions).
64

75
There are two key motivations behind generator functions:

0 commit comments

Comments
 (0)