File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -369,12 +369,13 @@ export type OpaqueRef<T> =
369369 *
370370 * Note: This is primarily used for type constraints that require a cell.
371371 */
372- export type CellLike < T > = BrandedCell < InnerCellLike < T > > ;
373- type InnerCellLike < T > =
372+ export type CellLike < T > = BrandedCell < MaybeCellWrapped < T > > ;
373+ type MaybeCellWrapped < T > =
374+ | T
374375 | BrandedCell < T >
375- | T extends Array < infer U > ? Array < U | InnerCellLike < U > >
376- : T extends object ? { [ K in keyof T ] : T [ K ] | InnerCellLike < T [ K ] > }
377- : T ;
376+ | ( T extends Array < infer U > ? Array < MaybeCellWrapped < U > >
377+ : T extends object ? { [ K in keyof T ] : MaybeCellWrapped < T [ K ] > }
378+ : never ) ;
378379
379380/**
380381 * Opaque accepts T or any cell wrapping T, recursively at any nesting level.
You can’t perform that action at this time.
0 commit comments