vue3-notion icon indicating copy to clipboard operation
vue3-notion copied to clipboard

Title property should be optional

Open brachkow opened this issue 2 years ago • 2 comments

iframes (and some other blocks) have no title property

'2dd41fb9-8294-4d68-bf76-a4cddc789763': {
   role: 'reader',
   value: {
     id: '2dd41fb9-8294-4d68-bf76-a4cddc789763',
     version: 3,
     type: 'video',
     properties: {
       source: [['https://www.youtube.com/watch?v=jNQXAC9IVRw']],
     },

but it is not optional https://github.com/zernonia/vue3-notion/blob/1e6b447f6d5ce601845d910f8b0ffa22a6f674be/src/lib/types.ts#L57

brachkow avatar Feb 06 '23 20:02 brachkow

value.content should be optional too — it exists only for a title of page, and page as block

brachkow avatar Feb 06 '23 21:02 brachkow

btw all type definitions are not working — see my previous issue https://github.com/zernonia/vue3-notion/issues/30

brachkow avatar Feb 06 '23 21:02 brachkow