Переглянути джерело

chore: update @types/vexflow to 1.2.36, refactor one any (#506)

any can now be removed with the new definition update.
sschmid 5 роки тому
батько
коміт
a1f23e3a1a

+ 1 - 1
package.json

@@ -61,7 +61,7 @@
   },
   "homepage": "http://opensheetmusicdisplay.org",
   "dependencies": {
-    "@types/vexflow": "^1.2.33",
+    "@types/vexflow": "^1.2.36",
     "jszip": "3.4.0",
     "loglevel": "^1.6.8",
     "typescript-collections": "^1.3.3",

+ 1 - 1
src/MusicalScore/Graphical/VexFlow/VexFlowMultiRestMeasure.ts

@@ -37,7 +37,7 @@ export class VexFlowMultiRestMeasure extends VexFlowMeasure {
         this.resetLayout();
 
         // type note: Vex.Flow.MultiMeasureRest is not in the DefinitelyTyped definitions yet.
-        this.multiRestElement = new (Vex.Flow as any).MultiMeasureRest(sourceMeasure.multipleRestMeasures, {
+        this.multiRestElement = new Vex.Flow.MultiMeasureRest(sourceMeasure.multipleRestMeasures, {
             // number_line: 3
         });
     }