react-simple-horizontal-scroller
Version:
A wrapper for horizontally scorlling items, like tabs, that will manage adding and removing scroll controls
13 lines (12 loc) • 602 B
TypeScript
/// <reference types="react" />
/**
* Returns true if the given JSX element matches the given component type.
*
* NOTE: This function only checks equality of `displayName` for performance and
* to tolerate multiple minor versions of a component being included in one
* application bundle.
* @param element JSX element in question
* @param ComponentType desired component type of element
*/
export declare function isElementOfType<P = {}>(element: any, ComponentType: React.ComponentType<P>): element is React.ReactElement<P>;
export declare function assertNever(val: never): never;