Why is my custom .d.ts not working? LeaderLine is not a constructor

Discussão em 'Angular' iniciado por Tucaen, Março 27, 2025.

  1. Tucaen

    Tucaen Guest

    I want to add typings to the leader-line library, but I keep getting the error TypeError: leader_line_1.LeaderLine is not a constructor

    I am sure it's just one small thing / concept I am overlooking or not understanding and I am going nuts over it.

    Here is a stackblitz of my approach: https://stackblitz.com/edit/angular-leader-line-ovnz2v?file=src/app/app.component.ts

    Here is the original stackblitz with the untyped LeaderLine:https://stackblitz.com/edit/angular-leader-line?file=src/app/app.component.ts

    Continue reading...

Compartilhe esta Página