react-json-view icon indicating copy to clipboard operation
react-json-view copied to clipboard

displayArrayKey not present ReactJsonViewProps interface definition

Open chireia opened this issue 4 years ago • 4 comments

Version: "react-json-view": "^1.21.3",

displayArrayKey not present ReactJsonViewProps interface definition

chireia avatar Sep 16 '21 20:09 chireia

I noticed the same. Intentional? Probably not as the prop is mentioned at https://www.npmjs.com/package/react-json-view.

denarced avatar Nov 18 '21 13:11 denarced

I also meet the same problem, any solutions for this?

yaoyw0727 avatar Dec 17 '21 08:12 yaoyw0727

A PR would be best, but adding this in your own codebase works for me:

declare module "react-json-view" {
  export interface ReactJsonViewProps {
    displayArrayKey: boolean
  }
}

drcharris avatar Dec 22 '21 13:12 drcharris