Skip to content

Commit 90b76fb

Browse files
committed
fix(linear): fix type error on build linear data snapshot
1 parent 62178ec commit 90b76fb

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/linear/build-snapshot.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ async function fetchTeams(): Promise<TeamsQueryResult['teams']['nodes']> {
168168

169169
while (hasNextPage) {
170170
const result = await withRetry(() =>
171-
linear.client.request<TeamsQueryResult>(TEAMS_QUERY, {
171+
linear.client.request<
172+
TeamsQueryResult,
173+
{ first: number; after: string | null }
174+
>(TEAMS_QUERY, {
172175
first: 50,
173176
after: endCursor
174177
})
@@ -190,7 +193,10 @@ async function fetchViewProjects(viewId: string): Promise<ViewProjectNode[]> {
190193

191194
while (hasNextPage) {
192195
const result = await withRetry(() =>
193-
linear.client.request<CustomViewQueryResult>(CUSTOM_VIEW_QUERY, {
196+
linear.client.request<
197+
CustomViewQueryResult,
198+
{ id: string; after: string | null }
199+
>(CUSTOM_VIEW_QUERY, {
194200
id: viewId,
195201
after: endCursor
196202
})

0 commit comments

Comments
 (0)