From 396be73c14c800ef2c1b2d33a8b16172865e8c9e Mon Sep 17 00:00:00 2001 From: Sibiraj Date: Sun, 8 May 2022 11:39:47 +0530 Subject: [PATCH] fix: update typings for attributes --- projects/ngx-editor/src/lib/Editor.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/ngx-editor/src/lib/Editor.ts b/projects/ngx-editor/src/lib/Editor.ts index 37752a21..c4ac5055 100644 --- a/projects/ngx-editor/src/lib/Editor.ts +++ b/projects/ngx-editor/src/lib/Editor.ts @@ -21,7 +21,7 @@ interface Options { schema?: Schema; plugins?: Plugin[]; nodeViews?: EditorProps['nodeViews']; - attributes?: Record; + attributes?: EditorProps['attributes']; features?: EditorFeatures; } @@ -101,7 +101,7 @@ class Editor { const doc = parseContent(content, schema); const plugins: Plugin[] = options.plugins ?? []; - const attributes: Record = options.attributes ?? {}; + const attributes: EditorProps['attributes'] = options.attributes ?? {}; const defaultPlugins = getDefaultPlugins(schema, { history,