Skip to content

Commit 134d6e9

Browse files
committed
test(types): say what the root-vs-subpath identity reading adds (objectui#9526)
Comment-only: the identity block's comment claimed a different barrel type would pass the containment reading, which it would not; state what the block actually adds instead. Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC Co-authored-by: Claude <noreply@anthropic.com>
1 parent 59e3aaf commit 134d6e9

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎packages/types/src/__tests__/form-barrel-mirror-9406.test.ts‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,9 @@ describe('objectui#9526 -- the element types of `CommandSchema` resolve from the
310310
});
311311

312312
it('each root spelling is the SAME declaration as its `/form` spelling', () => {
313-
// The same reason as the objectui#9406 block above: a barrel line naming
314-
// a different type would satisfy the containment reading only by accident.
313+
// The containment reading ties each root name to what the root
314+
// `CommandSchema` holds; this ties it to the `/form` spelling a subpath
315+
// consumer already imports, so the two entry points cannot drift apart.
315316
const item: Eq<CommandItemFromRoot, CommandItemFromForm> = true;
316317
const group: Eq<CommandGroupFromRoot, CommandGroupFromForm> = true;
317318
expect([item, group]).toEqual([true, true]);

0 commit comments

Comments
 (0)