Skip to content

Commit

Permalink
Remove experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
ComLock committed Oct 11, 2024
1 parent 24d3531 commit 33d31b8
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions modules/lib/core/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,23 +607,8 @@ export interface LayoutRegion<
components: Components;
}

// type HasLayout<T extends unknown[]> = T extends [infer F, ...infer R]
// ? F extends LayoutComponent | Layout
// ? true
// : HasLayout<R>
// : false;

export type Region<
Components extends
// (
// HasLayout<Components> extends true
// ? (FragmentComponent | LayoutComponent | PartComponent | TextComponent)[]
// : (FragmentComponent | PartComponent | TextComponent)[]
// ) = (
// HasLayout<Components> extends true
// ? (FragmentComponent | Layout | Part | TextComponent)[]
// : (FragmentComponent | Part | TextComponent)[]
// )
(FragmentComponent | LayoutComponent | PartComponent | TextComponent)[] =
(FragmentComponent | Layout | Part | TextComponent)[]
// @ts-expect-error TODO LayoutRegion can't eat LayoutComponent nor Layout!!!
Expand Down

0 comments on commit 33d31b8

Please sign in to comment.