Improve TSDoc comments for useViewport, useUpdateNodeInternals, useOnSelectionChange, useNodesInitialized hooks and UseOnSelectionChangeOptions, UseNodesInitializedOptions types

This commit is contained in:
Dimitri POSTOLOV
2025-04-05 17:37:43 +02:00
parent b9e4f82933
commit d536abea92
5 changed files with 17 additions and 11 deletions
+3 -3
View File
@@ -12,11 +12,11 @@ const viewportSelector = (state: ReactFlowState) => ({
/**
* The `useViewport` hook is a convenient way to read the current state of the
*{@link Viewport} in a component. Components that use this hook
*will re-render **whenever the viewport changes**.
* {@link Viewport} in a component. Components that use this hook
* will re-render **whenever the viewport changes**.
*
* @public
* @returns The current viewport
* @returns The current viewport.
*
* @example
*