Skip to content

Commit 77fe1af

Browse files
authored
Merge pull request #47 from dpchamps/suspense-patched-types
feat(sylph-jsx): add Suspense and SuspenseList to patched types
2 parents 4d171f1 + 4259d1d commit 77fe1af

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

packages/sylph-jsx/src/pixi-jsx/solidjs-universal-renderer/patched-types.ts

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
export {
2-
Suspense,
3-
SuspenseList,
42
ErrorBoundary,
53
createEffect,
64
createMemo,
@@ -54,6 +52,8 @@ import {
5452
lazy as solidLazy,
5553
Match as SolidMatch,
5654
Switch as SolidSwitch,
55+
SuspenseList as SolidSuspenseList,
56+
Suspense as SolidSuspense,
5757
} from "solid-js";
5858

5959
/// Index
@@ -180,3 +180,21 @@ export declare function MatchType<
180180
}): JSX.Element;
181181

182182
export const Match = SolidMatch as unknown as typeof MatchType;
183+
184+
/// Suspense
185+
186+
export declare function SuspenseListType(props: {
187+
children: JSX.Element;
188+
revealOrder: "forwards" | "backwards" | "together";
189+
tail?: "collapsed" | "hidden";
190+
}): JSX.Element;
191+
192+
export const SuspenseList =
193+
SolidSuspenseList as unknown as typeof SuspenseListType;
194+
195+
export declare function SuspenseType(props: {
196+
fallback?: JSX.Element;
197+
children: JSX.Element;
198+
}): JSX.Element;
199+
200+
export const Suspense = SolidSuspense as unknown as typeof SuspenseType;

0 commit comments

Comments
 (0)