mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 18:38:15 +01:00
Atomic linking
This commit is contained in:
@@ -184,6 +184,16 @@ export const aciSchema = z
|
||||
return x;
|
||||
});
|
||||
|
||||
export const untaggedPniSchema = z
|
||||
.string()
|
||||
.refine(isUntaggedPniString)
|
||||
.transform(x => {
|
||||
if (!isUntaggedPniString(x)) {
|
||||
throw new Error('Refine did not throw!');
|
||||
}
|
||||
return x;
|
||||
});
|
||||
|
||||
export const serviceIdSchema = z
|
||||
.string()
|
||||
.refine(isServiceIdString)
|
||||
|
||||
Reference in New Issue
Block a user