Skip to content

Commit b825274

Browse files
committed
Add new data types needed for the next step.
1 parent cbb537b commit b825274

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

browser-extension/src/lib/enhancer.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@ export interface CommentSpot {
1010
type: string
1111
}
1212

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+
1326
/** Wraps the textareas of a given platform with Gitcasso's enhancements. */
1427
export interface CommentEnhancer<Spot extends CommentSpot = CommentSpot> {
1528
/** Guarantees to only return a type within this list. */

0 commit comments

Comments
 (0)