File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -403,6 +403,7 @@ export class ParameterLoader {
403403 case AST_NODE_TYPES . TSFunctionType :
404404 case AST_NODE_TYPES . TSImportType :
405405 case AST_NODE_TYPES . TSMappedType :
406+ case AST_NODE_TYPES . TSNeverKeyword :
406407 // TODO: These types are explicitly not supported at the moment
407408 return { type : 'wildcard' } ;
408409 case AST_NODE_TYPES . TSTupleType :
Original file line number Diff line number Diff line change @@ -1826,6 +1826,8 @@ export interface A{
18261826 it ( 'should get the range of unsupported types as wildcard' , async ( ) => {
18271827 expect ( await getFieldRange ( 'fieldA: () => void' , { } ) )
18281828 . toEqual ( { type : 'wildcard' } ) ;
1829+ expect ( await getFieldRange ( 'fieldA: never' , { } ) )
1830+ . toEqual ( { type : 'wildcard' } ) ;
18291831 } ) ;
18301832
18311833 it ( 'should get the range of a union type of two raw types' , async ( ) => {
You can’t perform that action at this time.
0 commit comments