From a74f8d7487ccde38b8606915963ecd6ded95c5a2 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 25 Aug 2026 01:07:04 +0000 Subject: [PATCH] docs(components): cover README.md with the doc-snippet type gate Declares the router-layout excerpt as a fragment (`Outlet` is react-router's, supplied by the host) and deletes the document's UNGATED_DOCS ledger entry, so every ts/tsx block in this published README is compiled against the built types from now on. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_019b5UBNMtTzKbVtZZGvFuxe --- packages/components/README.md | 1 + scripts/check-doc-snippet-types.mjs | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/components/README.md b/packages/components/README.md index cf691dc7c1..047b08e66b 100644 --- a/packages/components/README.md +++ b/packages/components/README.md @@ -175,6 +175,7 @@ them draw the notification's `severity` icon unless it declares an `icon` override naming a real Lucide icon. See the [notifications guide](https://objectui.org/docs/guide/notifications). + ```tsx import { NotificationBanners, NotificationAlerts } from '@object-ui/components'; diff --git a/scripts/check-doc-snippet-types.mjs b/scripts/check-doc-snippet-types.mjs index 09b94d634d..888db0738c 100644 --- a/scripts/check-doc-snippet-types.mjs +++ b/scripts/check-doc-snippet-types.mjs @@ -456,8 +456,6 @@ const UNGATED_DOCS = { '1 parse diagnostic(s) — blocks fenced `ts` that are bare object literals or elided bodies; 15 undefined-name diagnostic(s) — blocks continue an earlier block, or use ambient names the page never defines; plus TS2741x1 — candidate real defects, un-triaged', 'packages/collaboration/README.md': '13 undefined-name diagnostic(s) — blocks continue an earlier block, or use ambient names the page never defines; plus TS2339x2 TS2353x1 TS2554x1 TS2739x1 — candidate real defects, un-triaged', - 'packages/components/README.md': - '1 undefined-name diagnostic(s) — blocks continue an earlier block, or use ambient names the page never defines', 'packages/core/README.md': '5 undefined-name diagnostic(s) — blocks continue an earlier block, or use ambient names the ' + 'page never defines; plus TS2339x1 — TRIAGED, and NOT a defect: the remaining one is ' +