-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathindex.d.ts
More file actions
41 lines (38 loc) · 1.02 KB
/
index.d.ts
File metadata and controls
41 lines (38 loc) · 1.02 KB
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
import * as React from "react";
import { Nav, toString, toEditorState, getMentions } from "./src";
export interface Props {
value: object,
suggestions: any[],
prefix: string | string[],
prefixCls: string,
tag: any,
style: object,
className: string,
onSearchChange: Function,
onChange: Function,
mode: string,
multiLines: boolean,
suggestionStyle: object,
placeholder: string,
defaultValue: object,
notFoundContent: any,
position: string,
onFocus: Function,
onBlur: Function,
onSelect: Function,
getSuggestionContainer: Function,
noRedup: boolean,
mentionStyle: object,
placement: string,
editorKey: string,
}
export const Nav: typeof Nav;
export const toString: typeof toString;
export const toEditorState: typeof toEditorState;
export const getMentions: typeof getMentions;
export default class Mention extends React.Component<Props> {
static Nav: typeof Nav;
static toString: typeof toString;
static toEditorState: typeof toEditorState;
static getMentions: typeof getMentions;
}