Skip to content

Commit 7907371

Browse files
ENvironmentSetanakin_karrot
andauthored
feat(react): Export StaticActivityComponentType (#655)
Co-authored-by: anakin_karrot <[email protected]>
1 parent 151b13f commit 7907371

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.changeset/warm-news-cross.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@stackflow/react": minor
3+
---
4+
5+
Export StaticActivityComponentType type hepler
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import type {
2+
InferActivityParams,
3+
RegisteredActivityName,
4+
} from "@stackflow/config";
5+
import type { StaticActivityComponentType as StaticActivityComponentTypeInternal } from "../__internal__/StaticActivityComponentType";
6+
7+
export type StaticActivityComponentType<
8+
ActivityName extends RegisteredActivityName,
9+
> = StaticActivityComponentTypeInternal<InferActivityParams<ActivityName>>;

integrations/react/src/future/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export * from "./ActivityComponentType";
88
export * from "./lazy";
99
export * from "./loader/useLoaderData";
1010
export * from "./StackComponentType";
11+
export * from "./StaticActivityComponentType";
1112
export * from "./StepActions";
1213
export * from "./stackflow";
1314
export * from "./useActivityParams";

0 commit comments

Comments
 (0)