diff --git a/vexflow/vexflow.d.ts b/vexflow/vexflow.d.ts index 5280eb5d5..01e3e7fdf 100644 --- a/vexflow/vexflow.d.ts +++ b/vexflow/vexflow.d.ts @@ -1155,15 +1155,15 @@ declare module Vex { } export module TextBracket { - enum Position {TOP, BOTTOM} + const enum Positions {TOP, BOTTOM} } class TextBracket { - constructor(bracket_data : {start : Note, stop : Note, text? : string, superscript? : string, position : TextBracket.Position}); + constructor(bracket_data : {start : Note, stop : Note, text? : string, superscript? : string, position? : TextBracket.Positions}); static DEBUG : boolean; applyStyle(context : IRenderContext) : TextBracket; setDashed(dashed : boolean, dash? : number[]) : TextBracket; - setFont(family : string, size : number, weight? : number) : TextBracket; + setFont({family : string, size : number, weight : string}) : TextBracket; setContext(context : IRenderContext) : TextBracket; setLine(line : number) : TextBracket; draw() : void;