Open kennycason opened 4 years ago
I don't know if this is totally right, but it may help you. Add it to your types
folder.
declare module 'react-anchor-link-smooth-scroll' {
interface Props {
href: string;
offset?: function | number;
onClick?: (e: Event) => void;
[key: string]: any;
}
export default class AnchorLink extends React.Component<Props> {}
}
@luismramirezr Thanks, I'll give it a spin.
@luismramirezr You should open a PR or submit your code to https://github.com/DefinitelyTyped/DefinitelyTyped!
Hi, I like the library however am unable to use it in my Typescript project. Any plan on adding the type files? Thanks!