diff --git a/ts/textsecure/WebAPI.preload.ts b/ts/textsecure/WebAPI.preload.ts index 25d6f9a216..eaf3ca5040 100644 --- a/ts/textsecure/WebAPI.preload.ts +++ b/ts/textsecure/WebAPI.preload.ts @@ -1099,7 +1099,7 @@ export type CreateAccountOptionsType = Readonly<{ const linkDeviceResultZod = z.object({ uuid: aciSchema, - pni: untaggedPniSchema.optional(), + pni: untaggedPniSchema.nullish(), deviceId: z.number(), }); export type LinkDeviceResultType = z.infer;