From fbf4f56a9dba3930bf62aa1f45441fc3ccbbc24d Mon Sep 17 00:00:00 2001 From: Numan Ahmad Date: Wed, 26 Oct 2022 13:17:52 +0500 Subject: [PATCH] use generator type for generators --- step39_generators/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/step39_generators/app.ts b/step39_generators/app.ts index 3e0b14d5..aba050a0 100644 --- a/step39_generators/app.ts +++ b/step39_generators/app.ts @@ -1,6 +1,6 @@ //Execution of a generator is paused till the next iteration is invoked -function *generatorFn(): string{ +function *generatorFn(): Generator { //first task yield "firstValue";