We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c5a365 commit 47885a2Copy full SHA for 47885a2
src/plugins/VideoTransformer.ts
@@ -22,8 +22,13 @@ export const standardVideoTransformer: IPlugin = {
22
url = video.file.url;
23
break;
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.
28
warning(
- `[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.`
32
);
33
return "";
34
0 commit comments