DefinitelyTyped/types/react-compass/react-compass-tests.tsx
Rick Wilson bb09479b88
Add typing for react-compass (#45599)
* Added Types for react-compass

* Added directionNames prop

Co-authored-by: Rick Wilson <me@richardawilson.com>
2020-06-21 00:45:34 -07:00

11 lines
231 B
TypeScript

import * as React from "react";
import ReactCompass from 'react-compass';
interface CompassProps {
direction: number;
}
const CompassComp: React.FC<CompassProps> = (props) => {
return (<ReactCompass direction={0} />);
};