Skip to content

Commit

Permalink
fix: interface loader issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Shruthi Rai committed Dec 17, 2021
1 parent 3df92ea commit 953d7f7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion react-app/src/component/ColorTableTypes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface colorTablesObj {
export declare type colorTablesObj = {
name: string;
description: string;
colors: [number, number, number, number][];
Expand Down
4 changes: 2 additions & 2 deletions react-app/src/component/Legend/ContinuousLegend.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { select, scaleLinear, scaleSequential, axisBottom } from "d3";
import { templateArray } from "../WelllayerTemplateTypes";
import { colorTablesArray } from "../ColorTableTypes";

interface legendProps {
declare type legendProps = {
min: number;
max: number;
dataObjectName: string;
Expand All @@ -15,7 +15,7 @@ interface legendProps {
horizontal: boolean;
}

interface ItemColor {
declare type ItemColor = {
color: string;
offset: number;
}
Expand Down
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 @@ -4,11 +4,11 @@ import { scaleOrdinal, select } from "d3";
import { templateArray, propertiesObj } from "../WelllayerTemplateTypes";
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;
name: string;
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/component/WelllayerTemplateTypes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export interface propertiesObj {
export declare type propertiesObj = {
objectName: string;
colorTable: string;
context: string;
Expand All @@ -7,7 +7,7 @@ export interface propertiesObj {

type propertiesArr = Array<propertiesObj>;

interface template {
declare type template = {
name: string;
properties: propertiesArr;
}
Expand Down

0 comments on commit 953d7f7

Please sign in to comment.