TypeScript Version: 3.0.0-dev.20180609
Search Terms: import type
Code
import {getWrappedNodeAtPosition} from 'tsutils';
getWrappedNodeAtPosition(/*1*/
Expected behavior:
Expected the following signature help, because it used to to show that in previous versions.
getWrappedNodeAtPosition(wrap: NodeWrap, pos: number): NodeWrap | undefined
Otherwise I would expect the use of the import()-type to be consistent and to also be used in the return type.
Actual behavior:
After typing the opening paren (at /*1*/), the following signature help is shown:
getWrappedNodeAtPosition(wrap: import("/Users/klaus/code/wotan/node_modules/tsutils/util/convert-ast").NodeWrap, pos: number): NodeWrap | undefined
Playground Link:
Related Issues:
TypeScript Version: 3.0.0-dev.20180609
Search Terms: import type
Code
Expected behavior:
Expected the following signature help, because it used to to show that in previous versions.
Otherwise I would expect the use of the
import()-type to be consistent and to also be used in the return type.Actual behavior:
After typing the opening paren (at
/*1*/), the following signature help is shown:Playground Link:
Related Issues: