From 1c02c94e0d8e19768f897955082a03f0e244ca95 Mon Sep 17 00:00:00 2001 From: zbeyens Date: Mon, 2 Oct 2023 14:31:17 +0200 Subject: [PATCH] fix: types --- packages/caption/src/createCaptionPlugin.ts | 2 +- packages/serializer-md/src/deserializer/types.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/caption/src/createCaptionPlugin.ts b/packages/caption/src/createCaptionPlugin.ts index 56e0ddd3df..0396fd2951 100644 --- a/packages/caption/src/createCaptionPlugin.ts +++ b/packages/caption/src/createCaptionPlugin.ts @@ -7,7 +7,7 @@ export interface CaptionPlugin { /** * Plugin keys to enable caption. */ - pluginKeys: string[]; + pluginKeys?: string[]; } export const KEY_CAPTION = 'caption'; diff --git a/packages/serializer-md/src/deserializer/types.ts b/packages/serializer-md/src/deserializer/types.ts index 5980a06b95..220d281d29 100644 --- a/packages/serializer-md/src/deserializer/types.ts +++ b/packages/serializer-md/src/deserializer/types.ts @@ -3,6 +3,6 @@ import { Value } from '@udecode/plate-common'; import { RemarkElementRules, RemarkTextRules } from '../remark-slate/index'; export interface DeserializeMdPlugin { - elementRules: RemarkElementRules; - textRules: RemarkTextRules; + elementRules?: RemarkElementRules; + textRules?: RemarkTextRules; }