From c056113fa84e6db735e5c601a126909291156195 Mon Sep 17 00:00:00 2001 From: Jessica Chong Date: Thu, 2 Dec 2021 05:13:03 -0800 Subject: [PATCH] feat: Add `as` option and pass through to ReactRenderer (#2213) * Add `as` option and pass through to ReactRenderer * Fix type, oops * type `as` as string --- src/ReactNodeViewRenderer.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/ReactNodeViewRenderer.tsx b/src/ReactNodeViewRenderer.tsx index fc12bc495..a6d9505ad 100644 --- a/src/ReactNodeViewRenderer.tsx +++ b/src/ReactNodeViewRenderer.tsx @@ -20,6 +20,7 @@ export interface ReactNodeViewRendererOptions extends NodeViewRendererOptions { newDecorations: Decoration[], updateProps: () => void, }) => boolean) | null, + as?: string, } class ReactNodeView extends NodeView { @@ -81,12 +82,15 @@ class ReactNodeView extends NodeView