From cb82bdb31468e477845c1b43198914f03a71381d Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 6 Sep 2026 17:20:31 +0000 Subject: [PATCH] docs(guide): annotate objectos-integration's object-grid literal as ObjectGridSchema `content/docs/guide/objectos-integration.mdx` declared its `object-grid` example as a bare `const schema = {`, so `check:doc-snippets` compiled the block against nothing: the gate read no declared type for the literal and `ObjectGridSchema` was never consulted. objectui#7713 was exactly a wrong-shaped `filter` on this very block, and the gate stayed green on it for the whole interval. Add `import type { ObjectGridSchema } from '@object-ui/types';` to the block's existing import group and annotate the literal `const schema: ObjectGridSchema = {`, the shape `packages/plugin-grid/README.md` already uses for its two `object-grid` examples. Nothing else in the block changes. The ceiling, stated so nobody over-reads it: `BaseSchema` closes with `[key: string]: any` (objectui#7927), so this annotation does NOT catch a misspelled key. It catches a key whose declared TYPE is wrong. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01FhBNJcLRZLe8M87VcUgpKr --- content/docs/guide/objectos-integration.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/docs/guide/objectos-integration.mdx b/content/docs/guide/objectos-integration.mdx index 1db05a6286..8a1ce94a4e 100644 --- a/content/docs/guide/objectos-integration.mdx +++ b/content/docs/guide/objectos-integration.mdx @@ -266,13 +266,14 @@ const sysUserView: ObjectViewSchema = { ```typescript import { ObjectStackAdapter } from '@object-ui/data-objectstack'; +import type { ObjectGridSchema } from '@object-ui/types'; const dataSource = new ObjectStackAdapter({ baseUrl: 'http://localhost:3000/api' }); // ObjectQL queries are automatically handled -const schema = { +const schema: ObjectGridSchema = { type: 'object-grid', objectName: 'contact', dataSource,