Skip to content

Commit

Permalink
Add namespace to type Hub
Browse files Browse the repository at this point in the history
  • Loading branch information
gzurowski committed Oct 22, 2024
1 parent 7839619 commit 7e09c2c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/types/hub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export type Hub = {
slug: string;
name: string;
description: string;
namespace?: string;
relevancyScore: number;
numDocs?: number;
numComments?: number;
Expand All @@ -19,6 +20,7 @@ export const parseHub = (raw: any): Hub => {
isUsedForRep: raw.is_used_for_rep || false,
relevancyScore: raw.relevancy_score || 0,
description: raw.description || "",
namespace: raw.namespace,
};

if (raw.discussion_count) {
Expand Down

0 comments on commit 7e09c2c

Please sign in to comment.