Type Alias ProviderResult<T>

Expand description

A provider result represents the values a provider, like the HoverProvider, may return. For once this is the actual result type T, like Hover, or a thenable that resolves to that type T. In addition, null and undefined can be returned - either directly or from a thenable.

type ProviderResult<T> = T | undefined | null | Thenable<T | undefined | null>