From 1b498c3705fa4f98773309b3836703ede28fa44a Mon Sep 17 00:00:00 2001 From: Nathaniel Tucker Date: Fri, 27 Sep 2024 16:48:55 +0100 Subject: [PATCH] docs(demo): Add ForkEvent in union --- examples/github-app/src/resources/Event.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/github-app/src/resources/Event.tsx b/examples/github-app/src/resources/Event.tsx index 64b7df847911..034a14bb4c7b 100644 --- a/examples/github-app/src/resources/Event.tsx +++ b/examples/github-app/src/resources/Event.tsx @@ -4,6 +4,7 @@ import { ExclamationCircleOutlined, EyeOutlined, PullRequestOutlined, + ForkOutlined, } from '@ant-design/icons'; import { schema } from '@data-client/rest'; import { Temporal } from '@js-temporal/polyfill'; @@ -87,6 +88,7 @@ export const EventResource = githubResource({ PullRequestEvent, IssuesEvent, PushEvent, + ForkEvent: Event, PullRequestReviewEvent, IssueCommentEvent: Event, PullRequestReviewCommentEvent: Event, @@ -105,6 +107,7 @@ export const EventResource = githubResource({ export const typeToIcon: Record = { PullRequestEvent: , PushEvent: , + ForkEvent: , WatchEvent: , IssueCommentEvent: , PullRequestReviewEvent: , @@ -114,6 +117,7 @@ export const typeToIcon: Record = { type EventType = | 'WatchEvent' | 'PushEvent' + | 'ForkEvent' | 'IssuesEvent' | 'IssueCommentEvent' | 'CreateEvent'