Skip to content

Commit

Permalink
fix: update typings for attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s committed May 8, 2022
1 parent 608e978 commit 396be73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/ngx-editor/src/lib/Editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface Options {
schema?: Schema;
plugins?: Plugin[];
nodeViews?: EditorProps['nodeViews'];
attributes?: Record<string, string>;
attributes?: EditorProps['attributes'];
features?: EditorFeatures;
}

Expand Down Expand Up @@ -101,7 +101,7 @@ class Editor {
const doc = parseContent(content, schema);

const plugins: Plugin[] = options.plugins ?? [];
const attributes: Record<string, string> = options.attributes ?? {};
const attributes: EditorProps['attributes'] = options.attributes ?? {};

const defaultPlugins = getDefaultPlugins(schema, {
history,
Expand Down

0 comments on commit 396be73

Please sign in to comment.