-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Auto-importFix AvailableA PR has been opened for this issueA PR has been opened for this issue
Milestone
Description
TypeScript Version: 3.9.0-dev.20200220
Search Terms:
yield in combination with looking for import in the title.
Code
import { call } from 'redux-saga/effects';
export function* test() {
select(); // works
const token = yield select(() => 0); // doesn't work
yield call((a: string) => a, "");
}
Expected behavior:
Auto import should work
Actual behavior:
Auto import only works when no yield is in front of the statement.
Playground Link: https://codesandbox.io/s/affectionate-khorana-t6e9h
GitHub Repo: https://github.com/SantoJambit/yield-autoimport-issue
andrewbranch
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: Auto-importFix AvailableA PR has been opened for this issueA PR has been opened for this issue