fastcomments-typescript
Advanced tools
Comparing version
{ | ||
"name": "fastcomments-typescript", | ||
"version": "1.5.5", | ||
"version": "1.5.6", | ||
"description": "Common FastComments TypeScript Types", | ||
@@ -5,0 +5,0 @@ "author": "winrid", |
@@ -77,9 +77,9 @@ import {Comment} from "./fast-comments-comment"; | ||
/** Invoked when library initializes (nothing shown yet). **/ | ||
onInit: () => void, | ||
onInit?: () => void, | ||
/** Invoked when library renders content. Happens on any state change. **/ | ||
onRender: () => void, | ||
onRender?: () => void, | ||
/** Invoked when replying is successful. **/ | ||
onReplySuccess: (comment: Comment) => void, | ||
onReplySuccess?: (comment: Comment) => void, | ||
/** Invoked when voting is successful. **/ | ||
onVoteSuccess: (comment: Comment, voteId: string, direction: 'up'|'down'|'deleted', status: 'success'|'pending-verification') => void, | ||
onVoteSuccess?: (comment: Comment, voteId: string, direction: 'up'|'down'|'deleted', status: 'success'|'pending-verification') => void, | ||
} |
7722
0.05%