Skip to content

Commit 3055c6b

Browse files
authored
chore: Update jsx CellLike<T> to recursively allow its wrapper types (#1952)
1 parent 294320d commit 3055c6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/static/assets/types/jsx.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import type { OpaqueRef, Cell, Props, RenderNode, VNode, Stream } from "commonto
22

33
// Helper type that allows any combination of OpaqueRef, Cell, and Stream wrappers
44
// Supports arbitrary nesting like OpaqueRef<OpaqueRef<Cell<T>>>
5-
type CellLike<T> = OpaqueRef<T> | Cell<T> | Stream<T>;
5+
type InnerCellLike<T> = OpaqueRef<T> | Cell<T> | Stream<T>;
6+
type CellLike<T> = InnerCellLike<T> | InnerCellLike<InnerCellLike<T>>;
67

78
// Minimal theme typing for ct-theme
89
type CTColorToken = string | {

0 commit comments

Comments
 (0)