diff options
author | Dessalines <happydooby@gmail.com> | 2019-04-04 15:29:14 -0700 |
---|---|---|
committer | Dessalines <happydooby@gmail.com> | 2019-04-04 15:29:14 -0700 |
commit | 7d302e18016811b7c6809c396b371cf423794584 (patch) | |
tree | f0e99679eab81f0e67d51f5cb43fefc0bb1f3e9f /ui/src/interfaces.ts | |
parent | 10d9fa18aad137f7178bb6f0289c739660933567 (diff) |
Community editing
- Community editing mostly working. Fixes #26
Diffstat (limited to 'ui/src/interfaces.ts')
-rw-r--r-- | ui/src/interfaces.ts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ui/src/interfaces.ts b/ui/src/interfaces.ts index f202f7ac..0505a398 100644 --- a/ui/src/interfaces.ts +++ b/ui/src/interfaces.ts @@ -38,15 +38,22 @@ export interface CommunityForm { title: string; description?: string, category_id: number, + edit_id?: number; auth?: string; } -export interface CommunityResponse { +export interface GetCommunityResponse { op: string; community: Community; moderators: Array<CommunityUser>; } + +export interface CommunityResponse { + op: string; + community: Community; +} + export interface ListCommunitiesResponse { op: string; communities: Array<Community>; |