File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -81,10 +81,10 @@ module Impl = (
81
81
@set external setMin : (t_htmlInputElement , string ) => unit = "min"
82
82
@get external max : t_htmlInputElement => string = "max"
83
83
@set external setMax : (t_htmlInputElement , string ) => unit = "max"
84
- @get external selectionStart : t_htmlInputElement => int = "selectionStart"
85
- @set external setSelectionStart : (t_htmlInputElement , int ) => unit = "selectionStart"
86
- @get external selectionEnd : t_htmlInputElement => int = "selectionEnd"
87
- @set external setSelectionEnd : (t_htmlInputElement , int ) => unit = "selectionEnd"
84
+ @get @ return ( nullable ) external selectionStart : t_htmlInputElement => option < int > = "selectionStart"
85
+ @set external setSelectionStart : (t_htmlInputElement , option < int > ) => unit = "selectionStart"
86
+ @get @ return ( nullable ) external selectionEnd : t_htmlInputElement => option < int > = "selectionEnd"
87
+ @set external setSelectionEnd : (t_htmlInputElement , option < int > ) => unit = "selectionEnd"
88
88
@get external selectionDirection : t_htmlInputElement => string = "selectionDirection"
89
89
@set
90
90
external setSelectionDirection : (t_htmlInputElement , string ) => unit = "selectionDirection"
Original file line number Diff line number Diff line change @@ -79,10 +79,10 @@ external form: t => option<Dom.htmlFormElement> = "form"
79
79
type selectionDirection = [#forward | #backward | #none ]
80
80
81
81
@send external select : t => unit = "select"
82
- @get external selectionStart : t => int = "selectionStart"
83
- @set external setSelectionStart : (t , int ) => unit = "selectionStart"
84
- @get external selectionEnd : t => int = "selectionEnd"
85
- @set external setSelectionEnd : (t , int ) => unit = "selectionEnd"
82
+ @get @ return ( nullable ) external selectionStart : t => option < int > = "selectionStart"
83
+ @set external setSelectionStart : (t , option < int > ) => unit = "selectionStart"
84
+ @get @ return ( nullable ) external selectionEnd : t => option < int > = "selectionEnd"
85
+ @set external setSelectionEnd : (t , option < int > ) => unit = "selectionEnd"
86
86
@get
87
87
external selectionDirection : t => selectionDirection = "selectionDirection"
88
88
@set
You can’t perform that action at this time.
0 commit comments