Fixed react-json-tree - Broken import statement in d.ts #1087 (#1088)

* fixed broken import statement

* made two import statements

* made requested changes

* Create lemon-files-trade.md

Co-authored-by: Nathan Bierema <nbierema@gmail.com>
This commit is contained in:
NaincyKumariKnoldus 2022-02-23 21:27:48 +05:30 committed by GitHub
parent f43aba4908
commit 4c9a890904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 6 deletions

View File

@ -0,0 +1,5 @@
---
'react-json-tree': patch
---
Fix type import for Typescript versions <4.5

View File

@ -7,12 +7,12 @@ import React from 'react';
import PropTypes from 'prop-types';
import JSONNode from './JSONNode';
import createStylingFromTheme from './createStylingFromTheme';
import {
invertTheme,
type StylingConfig,
type StylingFunction,
type StylingValue,
type Theme,
import { invertTheme } from 'react-base16-styling';
import type {
StylingConfig,
StylingFunction,
StylingValue,
Theme,
} from 'react-base16-styling';
import { CircularPropsPassedThroughJSONTree } from './types';