notionapi icon indicating copy to clipboard operation
notionapi copied to clipboard

Why isn't `BasicBlock` autofilled for each type?

Open iwinux opened this issue 1 year ago • 1 comments

Currently we need to explicitly specify BasicBlock, set the Type field with consts like BlockTypeTableOfContents. It's very tedious and error-prone (no validation if I set the wrong type for TableOfContentsBlock.BasicBlock.Type).

iwinux avatar Feb 23 '24 09:02 iwinux

I had such helper constructors in my local fork, so it's been requested - I'm making a PR

amberpixels avatar Dec 20 '24 17:12 amberpixels