UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

14 lines 770 B
import { SynapseClientError } from '@sage-bionetworks/synapse-client/util/SynapseClientError'; import { ChallengeTeam, CreateTeamRequest, MembershipInvitation, Team } from '@sage-bionetworks/synapse-types'; /** * Hook that in one call will * - Create a team * - Register that team for a challenge * - Send invitations to join the team to a defined list of email addresses */ export default function useCreateAndRegisterChallengeTeam(): { createAndRegisterTeam: (teamToCreate: CreateTeamRequest, challengeId: string, invitees: string[], invitationMessage: string) => Promise<[Team, ChallengeTeam, MembershipInvitation[]]>; isPending: boolean; errors: SynapseClientError[] | undefined; }; //# sourceMappingURL=useCreateAndRegisterChallengeTeam.d.ts.map