Atomic linking

This commit is contained in:
Fedor Indutny
2023-08-29 02:41:32 +02:00
committed by GitHub
parent cbd16b90bb
commit ccb5eb0dd2
11 changed files with 735 additions and 383 deletions

View File

@@ -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)