WEB-63850 TS: properly handle strictNullChecks setting - fix Web Symbols and Vue

GitOrigin-RevId: 53a97ce80fdf7368d93bd9958940259eea57713b
This commit is contained in:
Piotr Tomiak
2024-03-14 14:26:15 +00:00
committed by intellij-monorepo-bot
parent a046ab5148
commit 1d57188894
2 changed files with 1 additions and 3 deletions
@@ -8,8 +8,6 @@ import com.intellij.webSymbols.completion.WebSymbolCodeCompletionItem
interface WebSymbolHtmlAttributeValueTypeSupport : WebSymbolTypeSupport {
fun resolve(symbol: WebSymbol, type: Any?): Any?
/**
* @return [ThreeState.YES] if the type is equal to boolean ignoring null or undefined values,
* [ThreeState.UNSURE] if the boolean is assignable to the type and
@@ -50,7 +50,7 @@ internal data class WebSymbolHtmlAttributeInfoImpl(
WebSymbolHtmlAttributeValue.Type.SYMBOL -> null
WebSymbolHtmlAttributeValue.Type.OF_MATCH -> symbol.type
WebSymbolHtmlAttributeValue.Type.COMPLEX -> attrValue?.langType
}?.let { typeSupport.resolve(symbol, it) }
}
else null
val isHtmlBoolean = if (kind == WebSymbolHtmlAttributeValue.Kind.PLAIN)