Skip to content

Commit 86fd4de

Browse files
committed
Run check-extractions
1 parent e1244f8 commit 86fd4de

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

apps/learning-snippets/src/test/tree-widget/SubTreePaths.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { getSchemaContext, getTestViewer, mockGetBoundingClientRect, TreeWidgetT
2020
import type { SelectionStorage } from "@itwin/unified-selection";
2121
import type { IModelConnection, Viewport } from "@itwin/core-frontend";
2222
import type { InstanceKey } from "@itwin/presentation-common";
23+
import type { Props } from "@itwin/presentation-shared";
2324

2425
// __PUBLISH_EXTRACT_START__ TreeWidget.GetSubTreePathsComponentWithTargetItemsExample
2526
type UseModelsTreeProps = Props<typeof useModelsTree>;

packages/itwin/tree-widget/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ Use `getSubTreePaths` when you need to restrict the visible hierarchy to a speci
375375
<!-- BEGIN EXTRACTION -->
376376

377377
```tsx
378-
type UseModelsTreeProps = Parameters<typeof useModelsTree>[0];
379-
type GetSubTreePathsType = Exclude<UseModelsTreeProps["getSubTreePaths"], undefined>;
378+
type UseModelsTreeProps = Props<typeof useModelsTree>;
379+
type GetSubTreePathsType = NonNullable<UseModelsTreeProps["getSubTreePaths"]>;
380380

381381
function CustomModelsTreeComponentWithTargetItems({
382382
viewport,

0 commit comments

Comments
 (0)