type alias HasView codeChecks if type T has the specified type U. Type ParametersTView codeUView codeDefinitionIsAny<T> extends true ? true : IsAny<U> extends true ? false : Extract<T, U> extends never ? false : trueView code