You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
What’s changed
Fixes
isFullDataSource and isFullDatabase no 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 the title field, which is present on full objects and absent from the partial shapes — the same structural check the other guards already do (isFullPage checks url, isFullBlock checks type). isFullPageOrDataSource picks up the fix through isFullDataSource.