typescript - React-Bootstrap Definitely Typed: Error TS2309: An export assignment cannot be used in a module with other exported elements -


i've upgraded typings react-bootstrap , i'm getting error:

error ts2309: export assignment cannot used in module other exported elements.

on line:

declare namespace reactbootstrap {     // import react     import react = __react;     //definitions omitted }  declare module "react-bootstrap" {     export = reactbootstrap; //error ts2309: export assignment cannot used in module other exported elements. } 

is definition file wrong or doing wrong?

ok, in case had written own definitions, because missing typed typings:

custom.d.ts:

declare module "react-bootstrap" {     // import react     import react = require("react");      // <inputgroup.addon>     interface inputgroupaddonprops extends react.htmlattributes {     }     class inputgroupaddon extends react.component<inputgroupaddonprops, {}> {     } } 

the definitions typed looking this:

declare module "react-bootstrap" {     // import react     import react = require("react");     //all typings listed here } 

but has changed to:

declare namespace reactbootstrap {     // import react     import react = __react;     //all typings listed here, including inputgroupaddon missing }  declare module "react-bootstrap" {     export = reactbootstrap; } 

i fixed error removing duplicate definitions custom.d.ts


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -