What’s changed
Fixes
isFullDataSourceandisFullDatabaseno longer accept partial responses (#764)- Both guards only checked
response.object, so a partial data source or database object passed the guard and was incorrectly narrowed to the full type. They now also require thetitlefield, which is present on full objects and absent from the partial shapes — the same structural check the other guards already do (isFullPagechecksurl,isFullBlockcheckstype).isFullPageOrDataSourcepicks up the fix throughisFullDataSource.
- Both guards only checked
Links
- Full Changelog: v5.25.0...v5.25.1
- NPM Package: https://www.npmjs.com/package/@notionhq/client/v/5.25.1