Fix RepoInfo delegate type

This commit is contained in:
Sebastian Martinez
2024-09-11 13:35:34 +02:00
parent 8a417404b8
commit 43ad446dc7
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ use super::cobs::Author;
#[ts(export)]
pub struct RepoInfo {
pub payloads: SupportedPayloads,
#[ts(type = "({ id: string } | { id: string, alias?: string })[]")]
#[ts(as = "Vec<Author>")]
pub delegates: Vec<Author>,
pub threshold: usize,
#[ts(type = "{ type: 'public' } | { type: 'private', allow?: string[] }")]