From 902706919562b904ac839fd6a22a1217d2747cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20R=C3=B8ed?= Date: Wed, 23 Sep 2026 20:15:08 +0200 Subject: [PATCH] Read cell args from CellComponent in declared-cell-args test #204 made Cell a CellComponent. Inferring from ComponentLike gives any, so the three checks from #203 fail on main. --- table/src/-private/-type-tests/declared-cell-args.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/table/src/-private/-type-tests/declared-cell-args.test.ts b/table/src/-private/-type-tests/declared-cell-args.test.ts index 0a09a86..39b8710 100644 --- a/table/src/-private/-type-tests/declared-cell-args.test.ts +++ b/table/src/-private/-type-tests/declared-cell-args.test.ts @@ -4,6 +4,7 @@ import { headlessTable } from '../../index.ts'; import type { CellContext, ColumnConfig } from '../../index.ts'; import type { ComponentLike } from '@glint/template'; +import type { CellComponent } from '../cell-component.ts'; interface Person { name: string; @@ -15,7 +16,11 @@ interface GroupArgs { } type CellArgsOf = - NonNullable extends ComponentLike ? Args : never; + NonNullable extends CellComponent + ? Args + : NonNullable extends ComponentLike + ? Args + : never; ///////////////////////////////////////////// // A shared component takes a column list from its caller.