File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,13 @@ export const standardVideoTransformer: IPlugin = {
22
22
url = video . file . url ;
23
23
break ;
24
24
default :
25
+ // video.type can only be "external" or "file" as of the writing of this code, so typescript
26
+ // isn't happy trying to turn video.type into a string. But this default in our switch is
27
+ // just attempting some future-proofing. Thus the strange typing/stringifying below.
25
28
warning (
26
- `[standardVideoTransformer] Found Notion "video" block with type ${ video . type } . The best docu-notion can do for now is ignore it.`
29
+ `[standardVideoTransformer] Found Notion "video" block with type ${ JSON . stringify (
30
+ ( video as any ) . type
31
+ ) } . The best docu-notion can do for now is ignore it.`
27
32
) ;
28
33
return "" ;
29
34
break ;
You can’t perform that action at this time.
0 commit comments