Changeset View
Changeset View
Standalone View
Standalone View
lib/types/link-types.js
Show All 37 Lines | export const inviteLinkValidator: TInterface<InviteLink> = tShape<InviteLink>({ | ||||
expirationTime: t.maybe(t.Number), | expirationTime: t.maybe(t.Number), | ||||
limitOfUses: t.maybe(t.Number), | limitOfUses: t.maybe(t.Number), | ||||
numberOfUses: t.Number, | numberOfUses: t.Number, | ||||
}); | }); | ||||
export type FetchInviteLinksResponse = { | export type FetchInviteLinksResponse = { | ||||
+links: $ReadOnlyArray<InviteLink>, | +links: $ReadOnlyArray<InviteLink>, | ||||
}; | }; | ||||
export type CommunityLinks = { | |||||
+primaryLink: ?InviteLink, | |||||
}; | |||||
export type InviteLinks = { | |||||
+[communityID: string]: CommunityLinks, | |||||
}; | |||||
export type InviteLinksStore = { | |||||
+links: InviteLinks, | |||||
}; |