top | item 38720439

(no title)

chalsprhebaodu | 2 years ago

    function* operation() {
      //@ts-expect-error `string` is not assignable to `number`!
      let count = yield* createString();
      return count.toExponential()
    }
Is this a typo? How does the compiler know that count should be a number?

discuss

order

No comments yet.