prescottprue / react-redux-firebase

Redux bindings for Firebase. Includes React Hooks and Higher Order Components.
https://react-redux-firebase.com
MIT License
2.55k stars 559 forks source link

fix(types): use correct import for react in types #927

Closed loginov-rocks closed 4 years ago

loginov-rocks commented 4 years ago

Description

To fix the following:

node_modules/react-redux-firebase/index.d.ts:1:8 - error TS1259: Module '"/Users/danila/Projects/MyProject/node_modules/@types/react/index"' can only be default-imported using the 'esModuleInterop' flag

1 import React from 'react'
         ~~~~~

  node_modules/@types/react/index.d.ts:64:1
    64 export = React;
       ~~~~~~~~~~~~~~~
    This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

Check List

If not relevant to pull request, check off as complete

Relevant Issues

codecov[bot] commented 4 years ago

Codecov Report

Merging #927 into master will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #927   +/-   ##
=======================================
  Coverage   88.87%   88.87%           
=======================================
  Files          29       29           
  Lines         791      791           
=======================================
  Hits          703      703           
  Misses         88       88