From 011cd6a54903372e9c4e8e1565453c601aa388f6 Mon Sep 17 00:00:00 2001 From: Jeffrey Hsu Date: Tue, 14 Jan 2025 02:56:47 +0800 Subject: [PATCH] modify IActivity definition and add IStrictActivity --- types/git.ts | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/types/git.ts b/types/git.ts index 47b5276..eeccabc 100644 --- a/types/git.ts +++ b/types/git.ts @@ -1,13 +1,21 @@ declare global { - interface IActivity { + interface IActivity { id: string - content: T - op_type: string + content: null | string | IContent + op_type: 'commit_repo' | 'create_repo' | 'delete_branch' | 'delete_tag' | 'merge_pull_request' repo: { name: string html_url: string + owner: { + login: string + } } created: string + ref_name: string + } + + interface IStrictActivity extends IActivity { + content: IContent | null } interface IContent {