File tree Expand file tree Collapse file tree 3 files changed +2
-30
lines changed
testdata/baselines/reference
submoduleAccepted/conformance Expand file tree Collapse file tree 3 files changed +2
-30
lines changed Original file line number Diff line number Diff line change @@ -3032,7 +3032,7 @@ func IsJSDocSingleCommentNode(node *Node) bool {
3032
3032
}
3033
3033
3034
3034
func IsValidTypeOnlyAliasUseSite (useSite * Node ) bool {
3035
- return useSite .Flags & NodeFlagsAmbient != 0 ||
3035
+ return useSite .Flags & ( NodeFlagsAmbient | NodeFlagsJSDoc ) != 0 ||
3036
3036
IsPartOfTypeQuery (useSite ) ||
3037
3037
isIdentifierInNonEmittingHeritageClause (useSite ) ||
3038
3038
isPartOfPossiblyValidTypeOrAbstractComputedPropertyName (useSite ) ||
Original file line number Diff line number Diff line change 1
- /b.js(5,18): error TS1361: 'NS' cannot be used as a value because it was imported using 'import type'.
2
1
/b.js(6,14): error TS2420: Class 'C' incorrectly implements interface 'I'.
3
2
Property 'foo' is missing in type 'C' but required in type 'I'.
4
3
8
7
foo(): void;
9
8
}
10
9
11
- ==== /b.js (2 errors) ====
10
+ ==== /b.js (1 errors) ====
12
11
/**
13
12
* @import * as NS from './a'
14
13
*/
15
14
16
15
/** @implements {NS.I} */
17
- ~~
18
- !!! error TS1361: 'NS' cannot be used as a value because it was imported using 'import type'.
19
- !!! related TS1376 /b.js:2:17: 'NS' was imported here.
20
16
export class C {}
21
17
~
22
18
!!! error TS2420: Class 'C' incorrectly implements interface 'I'.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments