Skip to content

Commit 25305d4

Browse files
committed
Add tests for typeof and import types from Typescript
1 parent 668941c commit 25305d4

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

test/rules/assertions/checkTypes.js

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,24 @@ export default {
139139
140140
}
141141
`
142-
}
142+
},
143+
{
144+
code: `
145+
/**
146+
* @param {typeof bar} foo
147+
*/
148+
function qux(foo) {
149+
}
150+
`
151+
},
152+
{
153+
code: `
154+
/**
155+
* @param {import('./foo').bar.baz} foo
156+
*/
157+
function qux(foo) {
158+
}
159+
`
160+
},
143161
]
144162
};

0 commit comments

Comments
 (0)