Skip to content

Fix BlockType type brand and a comment typo - #41

Open
Avicennasis wants to merge 1 commit into
Squarespace:mainfrom
TypoScan3000:docs/fix-typos
Open

Avicennasis wants to merge 1 commit into
Squarespace:mainfrom
TypoScan3000:docs/fix-typos

Conversation

@Avicennasis

Copy link
Copy Markdown

Summary

  • src/plugins/enums.ts L12: export type BlockType = EnumValue<'Blocktype'>; → EnumValue<'BlockType'>. The declaration on the next line is EnumDecl<'BlockType'> = enum_('BlockType', …), so enum values carry kind: 'BlockType' and were not assignable to the exported BlockType type. Every other enum in the file uses matching brands. This is a type-only change with no runtime effect, and nothing in the repo references the type alias.
  • src/plugins/util.content.ts L22: See CMS-33805. for those, → See CMS-33805. For those,

SliceType.NEWSLETTERL (enums.ts L153) looks like a typo for NEWSLETTER, but it is a key on an exported enum, so it was deliberately left for maintainers to decide.

No runtime changes: one type annotation and one comment.

EnumValue<'Blocktype'> did not match its EnumDecl<'BlockType'> / enum_('BlockType'); type-only change, no runtime effect. Also capitalize a sentence in util.content.ts.

Signed-off-by: Léon Avic Simmons <Avicennasis@gmail.com>
@CLAassistant

CLAassistant commented Oct 26, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

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.

2 participants