File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 17
17
"lodash" : " ^4.17.21" ,
18
18
"lqip-modern" : " ^2.0.0" ,
19
19
"next" : " ^13.4.4" ,
20
- "notion-to-utils" : " ^0.4.4 " ,
20
+ "notion-to-utils" : " ^0.4.5 " ,
21
21
"p-map" : " ^7.0.2" ,
22
22
"react" : " ^18.2.0" ,
23
23
"react-dom" : " ^18.2.0" ,
Original file line number Diff line number Diff line change 1
- import { PageObjectResponse , MultiSelectPropertyItemObjectResponse } from 'notion-to-utils' ;
1
+ import {
2
+ PageObjectResponse ,
3
+ MultiSelectPropertyItemObjectResponse ,
4
+ GetPageResponse ,
5
+ } from 'notion-to-utils' ;
2
6
3
7
import { PreviewImage } from '@/interfaces/notion' ;
4
8
9
+ export type { PageObjectResponse , GetPageResponse } ;
5
10
export type SelectPropertyResponse = MultiSelectPropertyItemObjectResponse [ 'multi_select' ] [ number ] ;
6
11
export type SelectColor = SelectPropertyResponse [ 'color' ] ;
7
12
Original file line number Diff line number Diff line change
1
+ import { GetPageResponse } from 'notion-to-utils' ;
2
+
1
3
import { notionClient } from '@/utils' ;
2
4
3
5
const getNotionPosts = async ( databaseId : string ) => {
@@ -35,7 +37,7 @@ const getNotionPosts = async (databaseId: string) => {
35
37
] ,
36
38
} ) ;
37
39
38
- return response . results ;
40
+ return response . results as GetPageResponse [ ] ;
39
41
} ;
40
42
41
43
export default getNotionPosts ;
Original file line number Diff line number Diff line change @@ -2311,10 +2311,10 @@ normalize-url@^7.0.3:
2311
2311
resolved "https://registry.yarnpkg.com/normalize-url/-/normalize-url-7.2.0.tgz#5317f78cff95f5fa1e76cc0b5e33245c43781e11"
2312
2312
integrity sha512-uhXOdZry0L6M2UIo9BTt7FdpBDiAGN/7oItedQwPKh8jh31ZlvC8U9Xl/EJ3aijDHaywXTW3QbZ6LuCocur1YA==
2313
2313
2314
- notion-to-utils@^0.4.4 :
2315
- version "0.4.4 "
2316
- resolved "https://registry.yarnpkg.com/notion-to-utils/-/notion-to-utils-0.4.4 .tgz#d0419a39f14e99b021477e4521c801d3336f8531 "
2317
- integrity sha512-Tp0IORqdT3E3yKpHyuuUXcifb2GLpfc6hpbzwUmpMTRD2LlrTP2GBL0QsiiM6yrLyt+k0X8YWyUEu0zp6KPTzg ==
2314
+ notion-to-utils@^0.4.5 :
2315
+ version "0.4.5 "
2316
+ resolved "https://registry.yarnpkg.com/notion-to-utils/-/notion-to-utils-0.4.5 .tgz#68c36c867e0c309bbe9740f70c5850cfe17f7c19 "
2317
+ integrity sha512-dqmDTbj+bQUCp9g6w14UM2KKM0J7tkFYk4u2KCJriSfHpUrcEugaUCdkn1d0PrRE4dgtYAINp/CjdJ8iCIFaNA ==
2318
2318
dependencies :
2319
2319
" @notionhq/client" " ^2.2.15"
2320
2320
You can’t perform that action at this time.
0 commit comments