refactor: add error info to send invite results

This commit is contained in:
Andrew Bastin
2021-10-20 15:50:05 +05:30
parent 8561a7547f
commit fa4b130b18
2 changed files with 15 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ import {
} from "../graphql"
import { Email } from "../types/Email"
type CreateTeamInvitationErrors =
export type CreateTeamInvitationErrors =
| "invalid/email"
| "team/invalid_id"
| "team/member_not_found"