Introduce Service Id Types

Co-authored-by: Scott Nonnenberg <scott@signal.org>
This commit is contained in:
Fedor Indutny
2023-08-10 18:43:33 +02:00
committed by Jamie Kyle
parent 414c0a58d3
commit 366b875fd2
269 changed files with 5832 additions and 5550 deletions
+3 -3
View File
@@ -19,7 +19,7 @@ import type {
} from './Attachment';
import { toLogFormat } from './errors';
import type { LoggerType } from './Logging';
import type { UUIDStringType } from './UUID';
import type { ServiceIdString } from './ServiceId';
type GenericEmbeddedContactType<AvatarType> = {
name?: Name;
@@ -31,7 +31,7 @@ type GenericEmbeddedContactType<AvatarType> = {
// Populated by selector
firstNumber?: string;
uuid?: UUIDStringType;
uuid?: ServiceIdString;
};
export type EmbeddedContactType = GenericEmbeddedContactType<Avatar>;
@@ -149,7 +149,7 @@ export function embeddedContactSelector(
options: {
regionCode?: string;
firstNumber?: string;
uuid?: UUIDStringType;
uuid?: ServiceIdString;
getAbsoluteAttachmentPath: (path: string) => string;
}
): EmbeddedContactType {