-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
51 lines (49 loc) · 1.46 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
declare module '@outsystems/react-simple-code-editor' {
import * as React from 'react';
export default class extends React.Component<
React.DetailedHTMLProps<
React.HTMLAttributes<HTMLDivElement>,
HTMLDivElement
> & {
// Props for the component
value: string;
onValueChange: (value: string) => void;
highlight: (value: string) => string | React.ReactNode;
tabSize?: number;
insertSpaces?: boolean;
ignoreTabKey?: boolean;
noWrap?: boolean;
padding?: number | string;
style?: React.CSSProperties;
// Props for the textarea
inputRef?: (el: any) => void;
textareaId?: string,
autoFocus?: boolean;
disabled?: boolean;
form?: string;
maxLength?: number;
minLength?: number;
name?: string;
placeholder?: string;
readOnly?: boolean;
required?: boolean;
onClick?: (e: React.MouseEvent<HTMLTextAreaElement>) => void;
onFocus?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
onBlur?: (e: React.FocusEvent<HTMLTextAreaElement>) => void;
onKeyUp?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
onKeyDown?: (e: React.KeyboardEvent<HTMLTextAreaElement>) => void;
}
> {
session: {
history: {
stack: Array<{
value: string;
selectionStart: number;
selectionEnd: number;
timestamp: number;
}>;
offset: number;
};
};
}
}