Skip to content

Commit

Permalink
🏷️ Updated type import for few shared types
Browse files Browse the repository at this point in the history
  • Loading branch information
govind-srinidhi committed Apr 3, 2024
1 parent 387774a commit 4426731
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/lib/src/types/alluvial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
SankeyNode as D3SankeyNode,
SankeyExtraProperties,
} from 'd3-sankey';
import type { Dataset, DatasetValueObject } from '@/types/dataset';

import { Color } from '@/utils/constants';
import type { Dataset, DatasetValueObject } from '@/types/dataset';

interface AlluvialNodeTarget {
node: string;
Expand Down
8 changes: 4 additions & 4 deletions packages/lib/src/types/events.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { SankeyNode } from 'd3-sankey';
import type { SankeyNode } from 'd3-sankey';

import { SankeyLink, SankeyLinkProps, SankeyNodeProps } from './alluvial';
import { Data, DatasetValueObject, InternalDataset } from './dataset';
import { ContainerSize } from './size';
import type { SankeyLink, SankeyLinkProps, SankeyNodeProps } from './alluvial';
import type { Data, DatasetValueObject, InternalDataset } from './dataset';
import type { ContainerSize } from './size';

export interface AlluvialNodeEventPayload {
node: SankeyNode<SankeyNodeProps, SankeyLinkProps>;
Expand Down
8 changes: 4 additions & 4 deletions packages/lib/src/types/options.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import {
import type {
GetHighlightedElementsFunction,
SankeyLink,
SankeyLinkProps,
SankeyNodeProps,
} from './alluvial';
import { ColorPalette } from './dataset';
import { SankeyNode } from 'd3-sankey';
import type { ColorPalette } from './dataset';
import type { SankeyNode } from 'd3-sankey';

import { Format } from '../composables/format';
import type { Format } from '../composables/format';
import { Margins, TOOLTIP_POSITIONS } from '../utils/constants';

export interface AxisOptions extends Options {
Expand Down

0 comments on commit 4426731

Please sign in to comment.