Skip to content

Commit 7d6e33c

Browse files
committed
update interceptor syntax for next release
1 parent d799fc6 commit 7d6e33c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/generators/plugin-intercept.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const indexTpl = (name: string) => `export const interceptor = {
2020
2121
async intercept(query: string, context: {
2222
fetch: typeof fetch
23-
}): Promise<{ query: string }> {
24-
// transform and return the modified query
23+
}): Promise<{ query: string; overrides?: { searchType?: string; lang?: string; timeFilter?: string } }> {
24+
// transform the query, and optionally override search params
2525
return { query }
2626
},
2727
}

0 commit comments

Comments
 (0)