File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,16 @@ declare module 'react-simple-code-editor' {
8
8
> & {
9
9
// Props for the component
10
10
value : string ;
11
- onValueChange : ( value : string ) => unknown ;
11
+ onValueChange : ( value : string ) => void ;
12
12
highlight : ( value : string ) => string | React . ReactNode ;
13
13
tabSize ?: number ;
14
14
insertSpaces ?: boolean ;
15
15
ignoreTabKey ?: boolean ;
16
16
padding ?: number | string ;
17
- style ?: object ;
17
+ style ?: React . CSSProperties ;
18
18
19
19
// Props for the textarea
20
+ textareaId ?: string ,
20
21
autoFocus ?: boolean ;
21
22
disabled ?: boolean ;
22
23
form ?: string ;
@@ -26,8 +27,11 @@ declare module 'react-simple-code-editor' {
26
27
placeholder ?: string ;
27
28
readOnly ?: boolean ;
28
29
required ?: boolean ;
29
- onFocus ?: ( e : React . FocusEvent < HTMLTextAreaElement > ) => unknown ;
30
- onBlur ?: ( e : React . FocusEvent < HTMLTextAreaElement > ) => unknown ;
30
+ onClick ?: ( e : React . MouseEvent < HTMLTextAreaElement > ) => void ;
31
+ onFocus ?: ( e : React . FocusEvent < HTMLTextAreaElement > ) => void ;
32
+ onBlur ?: ( e : React . FocusEvent < HTMLTextAreaElement > ) => void ;
33
+ onKeyUp ?: ( e : React . KeyboardEvent < HTMLTextAreaElement > ) => void ;
34
+ onKeyDown ?: ( e : React . KeyboardEvent < HTMLTextAreaElement > ) => void ;
31
35
}
32
36
> {
33
37
session : {
You can’t perform that action at this time.
0 commit comments