From 8eb312c09afc94d219873b8e26ba39be45f7483d Mon Sep 17 00:00:00 2001 From: Roman Quiring Date: Thu, 6 Aug 2015 17:20:53 +0200 Subject: [PATCH] fixed definition of Vex.Flow.TabSlide - changed constants SLIDE_UP and SLIDE_DOWN from static to const - fixed constructor arguments --- vexflow/vexflow.d.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vexflow/vexflow.d.ts b/vexflow/vexflow.d.ts index 10f25f369..e2b63cda5 100644 --- a/vexflow/vexflow.d.ts +++ b/vexflow/vexflow.d.ts @@ -1129,10 +1129,13 @@ declare module Vex { draw() : void; } + module TabSlide { + const SLIDE_UP : number; + const SLIDE_DOWN : number; + } + class TabSlide extends TabTie { - constructor(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}, direction : number); - static SLIDE_UP : number; - static SLIDE_DOWN : number; + constructor(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}, direction? : number); static createSlideUp(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}) : TabSlide; static createSlideDown(notes : {first_note: Note, last_note: Note, first_indices : number[], last_indices : number[]}) : TabSlide; renderTie(params : {first_ys : number[], last_ys : number[], last_x_px : number, first_x_px : number, direction : number}) : void;