We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fad042 commit 84fb89aCopy full SHA for 84fb89a
packages/core/src/extensions/Blocks/api/block.ts
@@ -234,6 +234,8 @@ export function createStronglyTypedTiptapNode<
234
return Node.create(config) as StronglyTypedTipTapNode<Name, Content>; // force re-typing (should be safe as it's type-checked from the config)
235
}
236
237
+// This helper function helps to instantiate a blockspec with a
238
+// config and implementation that conform to the type of Config
239
export function createInternalBlockSpec<T extends BlockConfig>(
240
config: T,
241
implementation: TiptapBlockImplementation<T>
0 commit comments