diff --git a/packages/core-components/api-report.md b/packages/core-components/api-report.md index b5c98add13..72ce416549 100644 --- a/packages/core-components/api-report.md +++ b/packages/core-components/api-report.md @@ -162,12 +162,36 @@ type DependencyEdge = T & { label?: string; }; -// Warning: (ae-forgotten-export) The symbol "DependencyGraphProps" needs to be exported by the entry point index.d.ts // Warning: (ae-missing-release-tag) "DependencyGraph" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) // // @public (undocumented) export function DependencyGraph(props: DependencyGraphProps): JSX.Element; +// Warning: (ae-missing-release-tag) "DependencyGraphProps" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export type DependencyGraphProps = React_2.SVGProps & { + edges: DependencyEdge[]; + nodes: DependencyNode[]; + direction?: Direction; + align?: Alignment; + nodeMargin?: number; + edgeMargin?: number; + rankMargin?: number; + paddingX?: number; + paddingY?: number; + acyclicer?: 'greedy'; + ranker?: Ranker; + labelPosition?: LabelPosition; + labelOffset?: number; + edgeRanks?: number; + edgeWeight?: number; + renderNode?: RenderNodeFunction; + renderLabel?: RenderLabelFunction; + defs?: SVGDefsElement | SVGDefsElement[]; + zoom?: 'enabled' | 'disabled' | 'enable-on-click'; +}; + declare namespace DependencyGraphTypes { export { DependencyEdge, diff --git a/packages/core-components/src/components/DependencyGraph/index.ts b/packages/core-components/src/components/DependencyGraph/index.ts index 5f5e7a5439..03a5bfd584 100644 --- a/packages/core-components/src/components/DependencyGraph/index.ts +++ b/packages/core-components/src/components/DependencyGraph/index.ts @@ -17,4 +17,5 @@ import * as DependencyGraphTypes from './types'; export { DependencyGraph } from './DependencyGraph'; +export type { DependencyGraphProps } from './DependencyGraph'; export { DependencyGraphTypes };