Skip to content

Commit c907e95

Browse files
committed
feat(types): add interface for Params
1 parent 1fdecd6 commit c907e95

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/types.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { ExtendedRecordMap, PageMap } from 'notion-types'
2+
import { ParsedUrlQuery } from 'querystring'
23

34
export * from 'notion-types'
45

@@ -16,6 +17,10 @@ export interface PageProps {
1617
error?: PageError
1718
}
1819

20+
export interface Params extends ParsedUrlQuery {
21+
pageId: string
22+
}
23+
1924
export interface Site {
2025
name: string
2126
domain: string

0 commit comments

Comments
 (0)