Skip to content

Commit 84fb89a

Browse files
committed
add comment
1 parent 3fad042 commit 84fb89a

File tree

1 file changed

+2
-0
lines changed
  • packages/core/src/extensions/Blocks/api

1 file changed

+2
-0
lines changed

Diff for: packages/core/src/extensions/Blocks/api/block.ts

+2
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ export function createStronglyTypedTiptapNode<
234234
return Node.create(config) as StronglyTypedTipTapNode<Name, Content>; // force re-typing (should be safe as it's type-checked from the config)
235235
}
236236

237+
// This helper function helps to instantiate a blockspec with a
238+
// config and implementation that conform to the type of Config
237239
export function createInternalBlockSpec<T extends BlockConfig>(
238240
config: T,
239241
implementation: TiptapBlockImplementation<T>

0 commit comments

Comments
 (0)