Add alias to PeerSelector

Signed-off-by: xphoniex <dj.2dixx@gmail.com>
This commit is contained in:
xphoniex
2023-05-16 08:17:48 +02:00
committed by Rūdolfs Ošiņš
parent 26944d5334
commit 2b21390540
3 changed files with 16 additions and 1 deletions
+2
View File
@@ -141,12 +141,14 @@ const treeSchema = strictObject({
export interface Remote {
id: string;
alias?: string;
heads: Record<string, string>;
delegate: boolean;
}
const remoteSchema = strictObject({
id: string(),
alias: string().optional(),
heads: record(string(), string()),
delegate: boolean(),
}) satisfies ZodSchema<Remote>;