You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Using ts-morph in fixing missing imports when converting flow file to Typescript file. It doesn't fix missing import for ObjectId. (which is from bson package)
Version: 13.0.2
To Reproduce
Input TS file. Both the types are used in the file.
// @flow/* flow-include import type { LineItemLayout } from './types/line-item-layout' import type { ObjectId } from 'bson'*/
...
Actual behavior
Only one import is added.
// @flow
/* flow-include
import type { LineItemLayout } from './types/line-item-layout'
import type { ObjectId } from 'bson'
*/
import { LineItemLayout } from './types/line-item-layout'
...
Expected behavior
Both the imports are added.
// @flow
/* flow-include
import type { LineItemLayout } from './types/line-item-layout'
import type { ObjectId } from 'bson'
*/
import { LineItemLayout } from './types/line-item-layout'
import { ObjectId } from 'bson'
...
The text was updated successfully, but these errors were encountered:
Describe the bug
Using ts-morph in fixing missing imports when converting flow file to Typescript file. It doesn't fix missing import for ObjectId. (which is from bson package)
Version: 13.0.2
To Reproduce
Input TS file. Both the types are used in the file.
Actual behavior
Only one import is added.
Expected behavior
Both the imports are added.
The text was updated successfully, but these errors were encountered: