Skip to content

Commit

Permalink
[sigma] Fixes #1425
Browse files Browse the repository at this point in the history
The built declarations for edge-arrow/index.ts were somehow broken, with
imports starting with "packages/sigma/types/...", which could not be
resolved, especially within Angular applications.

I could not understand exactly why that type was wrongly generated, but
I could solve the issue by explicitely setting the type for
EdgeArrowProgram.
  • Loading branch information
jacomyal committed May 27, 2024
1 parent 68da672 commit ada65cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sigma/src/rendering/programs/edge-arrow/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
* Compound program rendering edges as an arrow from the source to the target.
* @module
*/
import { createEdgeCompoundProgram } from "../../edge";
import { EdgeProgramType, createEdgeCompoundProgram } from "../../edge";
import EdgeArrowHeadProgram from "../edge-arrow-head";
import EdgeClampedProgram from "../edge-clamped";

const EdgeArrowProgram = createEdgeCompoundProgram([EdgeClampedProgram, EdgeArrowHeadProgram]);
const EdgeArrowProgram: EdgeProgramType = createEdgeCompoundProgram([EdgeClampedProgram, EdgeArrowHeadProgram]);

export default EdgeArrowProgram;

0 comments on commit ada65cf

Please sign in to comment.