Skip to content

Narrow DataSources resolver guard inputs#6773

Merged
artf merged 1 commit into
GrapesJS:devfrom
geonsang-jo:feat/datasources-type-guards
Jun 2, 2026
Merged

Narrow DataSources resolver guard inputs#6773
artf merged 1 commit into
GrapesJS:devfrom
geonsang-jo:feat/datasources-type-guards

Conversation

@geonsang-jo

Copy link
Copy Markdown
Contributor

Summary

Narrow DataSources resolver guard inputs from any to unknown and make the guard return types more precise by requiring the resolver type discriminator.

This improves type safety around DataSources resolver boundary checks without changing runtime behavior.

Testing

  • pnpm --filter grapesjs test -- --testPathPatterns=data_sources
  • pnpm --filter grapesjs build

@artf artf merged commit b97fe78 into GrapesJS:dev Jun 2, 2026
3 checks passed
@artf

artf commented Jun 2, 2026

Copy link
Copy Markdown
Member

Nice, thanks @geonsang-jo 🙏

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