We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbb537b commit b825274Copy full SHA for b825274
browser-extension/src/lib/enhancer.ts
@@ -10,6 +10,19 @@ export interface CommentSpot {
10
type: string
11
}
12
13
+export interface CommentDraft {
14
+ title: string | undefined
15
+ body: string
16
+}
17
+
18
+export type CommentEventType = 'ENHANCED' | 'LOST_FOCUS' | 'DESTROYED'
19
20
+export interface CommentEvent {
21
+ type: CommentEventType
22
+ spot: CommentSpot
23
+ draft: CommentDraft | undefined
24
25
26
/** Wraps the textareas of a given platform with Gitcasso's enhancements. */
27
export interface CommentEnhancer<Spot extends CommentSpot = CommentSpot> {
28
/** Guarantees to only return a type within this list. */
0 commit comments