Skip to content

Commit

Permalink
Merge pull request #20 from emerson-eps/replace-interface-with-declare
Browse files Browse the repository at this point in the history
Replace interface with declare type as it shows error while importing
  • Loading branch information
shruthirai authored Jan 13, 2022
2 parents 684ce45 + c35f15f commit 4554b24
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions react-app/src/component/Legend/DiscreteLegend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import legendUtil from "../Utils/discreteLegend";
import { scaleOrdinal, select } from "d3";
import { colorTablesArray, colorTablesObj } from "../ColorTableTypes";

interface ItemColor {
declare type ItemColor = {
color: string;
}

interface colorLegendProps {
declare type colorLegendProps = {
discreteData: { objects: Record<string, [number[], number]> };
dataObjectName: string;
position: number[];
Expand Down
2 changes: 1 addition & 1 deletion react-app/src/component/Utils/discreteLegend.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface ItemColor {
declare type ItemColor = {
color: string;
}

Expand Down
4 changes: 2 additions & 2 deletions react-app/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export { ContinuousLegend } from './component/Legend/ContinuousLegend';
export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
export { colorsArray, rgbValues, RGBToHex} from './component/Utils/continousLegend';
export { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
export { colorTableData, DiscreteColorLegend } from './component/Legend/DiscreteLegend';
export { propertiesObj, templateArray } from './component/WelllayerTemplateTypes';
export { colorTablesObj, colorTablesArray } from './component/ColorTableTypes';
import * as colorTables from './component/color-tables.json';
export default colorTables;

0 comments on commit 4554b24

Please sign in to comment.