
On user and asset I'm getting this green background. What is it? I'm not in "highlight ocurrences" mode, as I pressed ESC.
Hovering gives type (is an interface).
This is typescript code.
What I checked:
Found the solution here.
It was the "Variable type narrowed by a type guard" setting in
Settings
-> Editor
-> Color Scheme
-> TypeScript
-> "Variable type narrowed by a type guard"
the type of asset has been "narrowed" from type Asset | undefined which was returned by getAssetFromUrl() to then Asset as of the undefined check and the return.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With