Closed devjiwonchoi closed 1 year ago
Unfortunately we had to remove an old .env
file from the repo which required completely re-writing the commit history causing this PR's commit history to be out of date. Please re-submit this PR after pulling a fresh copy of this repo 🙏 Apologies for any inconvenience.
Description
Since Response types are currently in a union, the users cannot access response objects' property directly.
Example:
Fix
Current:
https://github.com/makenotion/notion-sdk-js/blob/83ac0435379c511e3b5a879fcdb06df0e80f5eae/src/api-endpoints.ts#L10279-L10286
Fix:
Fixes https://github.com/makenotion/notion-sdk-js/issues/425#issuecomment-1683981412 #443