Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
zbeyens committed Oct 2, 2023
1 parent 497110e commit 1c02c94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/caption/src/createCaptionPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface CaptionPlugin {
/**
* Plugin keys to enable caption.
*/
pluginKeys: string[];
pluginKeys?: string[];
}

export const KEY_CAPTION = 'caption';
Expand Down
4 changes: 2 additions & 2 deletions packages/serializer-md/src/deserializer/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ import { Value } from '@udecode/plate-common';
import { RemarkElementRules, RemarkTextRules } from '../remark-slate/index';

export interface DeserializeMdPlugin<V extends Value = Value> {
elementRules: RemarkElementRules<V>;
textRules: RemarkTextRules<V>;
elementRules?: RemarkElementRules<V>;
textRules?: RemarkTextRules<V>;
}

0 comments on commit 1c02c94

Please sign in to comment.