Skip to content

Commit

Permalink
feat: add types for searchparams (#13)
Browse files Browse the repository at this point in the history
add types for searchparams, making it easier to type unvalidated page
params, e.g.

```tsx
export interface SearchPageProps {
  searchParams: SearchParams
}
```
  • Loading branch information
stefanprobst authored Jan 25, 2025
2 parents fc45127 + b0996d6 commit a363e81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions types/next.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
type SearchParams = Record<string, string | Array<string>>;

0 comments on commit a363e81

Please sign in to comment.