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
Describe the bug
While using the Notion API, I observed that the color property in RichText's Annotation sometimes returns "default_background". This appears to be a new variant that is not currently included in the TypeScript type definitions provided by the library.
This issue only affects TypeScript type checking and does not impact JavaScript runtime behavior. However, adding the missing variant is important to ensure type-safe operations in TypeScript. Additionally, when using the documentation or this library as a reference to build API clients in other languages, deserialization errors can occur due to the missing variant.
To Reproduce
Node version: v22.11.0
Notion JS library version: 2.2.15
Steps to reproduce the behavior:
Set the color of a RichText annotation to Default background in Notion.
Make a request to retrieve RichText content with annotations.
Check the color property of the annotation object in the response.
Observe the color property returning "default_background".
Expected behavior
The color property in RichText's Annotation object should include the "default_background" variant in its TypeScript type definitions to reflect the actual API behavior.
Screenshots
Additional context
I will create a pull request to add this missing variant to the TypeScript type definitions.
The text was updated successfully, but these errors were encountered:
Describe the bug
While using the Notion API, I observed that the
color
property in RichText's Annotation sometimes returns"default_background"
. This appears to be a new variant that is not currently included in the TypeScript type definitions provided by the library.This issue only affects TypeScript type checking and does not impact JavaScript runtime behavior. However, adding the missing variant is important to ensure type-safe operations in TypeScript. Additionally, when using the documentation or this library as a reference to build API clients in other languages, deserialization errors can occur due to the missing variant.
To Reproduce
Node version:
v22.11.0
Notion JS library version:
2.2.15
Steps to reproduce the behavior:
color
property of theannotation
object in the response.color
property returning"default_background"
.Expected behavior
The
color
property in RichText's Annotation object should include the"default_background"
variant in its TypeScript type definitions to reflect the actual API behavior.Screenshots
Additional context
I will create a pull request to add this missing variant to the TypeScript type definitions.
The text was updated successfully, but these errors were encountered: