You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.
I believe this involves either generating declaration file programmatically to incorporate needed React types, which requires some setup changes, or setting @types/react as a peerDependency, which is bad for non-typescript users.
Maybe a good first step is to add a typescript section to the getting started docs and specifying that npm i @types/react is required
I can see this in the master branch at /types/index.d.ts but when I download the module I don't see this change. Can you please draft a new release with this change. I'm trying to use this in a Typescript React application. Thanks a lo!
Error happens because of this line: https://github.com/react-ga/react-ga/blob/master/types/index.d.ts#L74.
I think you must add
@types/react
as a (peer or normal) dependency and than addimport * as React from 'react';
or so to yourindex.d.ts
.The text was updated successfully, but these errors were encountered: