UNPKG

@datalayer/core

Version:
23 lines (22 loc) 616 B
import { TeamMember } from "./TeamMember"; import IOrganization from "./Organization"; export type IAnyTeam = ITeam; export declare function asTeam(t: any, organizationId: string): ITeam; export type IBaseTeam = { id: string; type: string; handle: string; name: string; description: string; public: boolean; creationDate: Date; lastUpdateDate?: Date; lastPublicationDate?: Date; setMembers: (members: TeamMember[]) => void; }; export type ITeam = IBaseTeam & { type: 'team'; organization: Pick<IOrganization, "id">; members: TeamMember[]; }; export default ITeam;