chore: type improvements (#5264)

This commit is contained in:
Yugang Cao
2022-01-21 14:56:20 +08:00
committed by GitHub
parent 9f55e6fbb1
commit 92e04a651f
2 changed files with 3 additions and 4 deletions

View File

@@ -224,7 +224,7 @@ function nextSibling(node: TestNode): TestNode | null {
return parent.children[i + 1] || null
}
function querySelector(): any {
function querySelector(): never {
throw new Error('querySelector not supported in test renderer.')
}