Skip to content

format: add the Name context type and guard to the TS types#246

Open
gnidan wants to merge 1 commit into
mainfrom
architect-name-type
Open

format: add the Name context type and guard to the TS types#246
gnidan wants to merge 1 commit into
mainfrom
architect-name-type

Conversation

@gnidan

@gnidan gnidan commented Jul 4, 2026

Copy link
Copy Markdown
Member

The name context has had a schema and spec page, but the TypeScript types never mirrored it — there was no Context.Name interface or isName guard, and name was absent from the Context union and isContext. Add them (matching the other context guards), so a bare { name } context is recognized, plus schema-guard test coverage.

The `name` context has had a schema and spec page, but the TypeScript
types never mirrored it — there was no `Context.Name` interface or
`isName` guard, and `name` was absent from the `Context` union and
`isContext`. Add them, matching the other context guards, so a bare
`{ name }` context is recognized.
@github-actions

github-actions Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://ethdebug.github.io/format/pr-preview/pr-246/

Built to branch gh-pages at 2026-07-04 21:09 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant