Преглед на файлове

fix build: add any for missing vexflow definition

sschmid преди 5 години
родител
ревизия
fdc42b6816
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/MusicalScore/Graphical/VexFlow/VexFlowMusicSheetCalculator.ts

+ 2 - 1
src/MusicalScore/Graphical/VexFlow/VexFlowMusicSheetCalculator.ts

@@ -129,7 +129,8 @@ export class VexFlowMusicSheetCalculator extends MusicSheetCalculator {
 
     // Format the voices
     const allVoices: Vex.Flow.Voice[] = [];
-    const formatter: Vex.Flow.Formatter = new Vex.Flow.Formatter({softmaxFactor: this.rules.SoftmaxFactorVexFlow});
+    // TODO: remove the any when the new DefinitelyTyped PR is through and update released
+    const formatter: Vex.Flow.Formatter = new (Vex.Flow as any).Formatter({softmaxFactor: this.rules.SoftmaxFactorVexFlow});
 
     for (const measure of measures) {
       if (!measure) {