Changeset View
Changeset View
Standalone View
Standalone View
lib/types/search-types.js
// @flow | // @flow | ||||
import type { GlobalAccountUserInfo } from './user-types.js'; | import type { GlobalAccountUserInfo } from './user-types.js'; | ||||
export type UserSearchRequest = { | export type UserSearchRequest = { | ||||
prefix?: string, | +prefix?: string, | ||||
}; | }; | ||||
export type UserSearchResult = { | export type UserSearchResult = { | ||||
userInfos: $ReadOnlyArray<GlobalAccountUserInfo>, | +userInfos: $ReadOnlyArray<GlobalAccountUserInfo>, | ||||
}; | |||||
export type ExactUserSearchRequest = { | |||||
+username: string, | |||||
}; | |||||
export type ExactUserSearchResult = { | |||||
+userInfo: ?GlobalAccountUserInfo, | |||||
}; | }; |