Closed kungpaogao closed 2 years ago
I'm trying to write a function to parse/render data from the CMS and I would like to use the color data to apply styles. However, the color type isn't exported, so I can't write a function like:
function parseColor(color: ApiColor): string { switch (color) { ... } }
Export the ApiColor type
ApiColor
nevermind, I got confused, ApiColor is from @notionhq/client: https://github.com/makenotion/notion-sdk-js/issues/280
@notionhq/client
Context
I'm trying to write a function to parse/render data from the CMS and I would like to use the color data to apply styles. However, the color type isn't exported, so I can't write a function like:
Proposed changes
Export the
ApiColor
type