From c907e95b002560d5a363d6a65c1ca0d7bcb7c691 Mon Sep 17 00:00:00 2001 From: Trang Le Date: Mon, 27 Jun 2022 10:57:26 +0000 Subject: [PATCH] feat(types): add interface for Params --- lib/types.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/types.ts b/lib/types.ts index 37b25ba..835c301 100644 --- a/lib/types.ts +++ b/lib/types.ts @@ -1,4 +1,5 @@ import { ExtendedRecordMap, PageMap } from 'notion-types' +import { ParsedUrlQuery } from 'querystring' export * from 'notion-types' @@ -16,6 +17,10 @@ export interface PageProps { error?: PageError } +export interface Params extends ParsedUrlQuery { + pageId: string +} + export interface Site { name: string domain: string