// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. export type $ID = E['id']; export type $UserID = E['user_id']; export type $Name = E['name']; export type $Username = E['username']; export type $Email = E['email']; export type RelationOneToOne = { [x in $ID]: T; }; export type RelationOneToMany = { [x in $ID]: Array<$ID>; }; export type IDMappedObjects = RelationOneToOne; export type UserIDMappedObjects = { [x in $UserID]: E; }; export type NameMappedObjects = { [x in $Name]: E; }; export type UsernameMappedObjects = { [x in $Username]: E; }; export type EmailMappedObjects = { [x in $Email]: E; }; export type Dictionary = { [key: string]: T; };