Skip to content

Conversation

@kettanaito
Copy link
Member

@kettanaito kettanaito commented Dec 27, 2025

Changes

This widens the type and runtime support of structures generated by GraphQL Code Gen. Now, MSW checks for the extension of a generic DocumentTypeDecoration, which both TypedDocumentNode and TypedDocumentString extend.

Roadmap

  • Runtime support
  • Add type tests

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 27, 2025

Open in StackBlitz

npm i https://pkg.pr.new/msw@2646

commit: 3fa86f4

@kettanaito kettanaito merged commit 494d5e8 into main Dec 27, 2025
28 of 29 checks passed
@kettanaito kettanaito deleted the fix/graphql-typed-document-string branch December 27, 2025 18:43
@kettanaito
Copy link
Member Author

Released: v2.12.7 🎉

This has been released in v2.12.7.

Get these changes by running the following command:

npm i msw@latest

Predictable release automation by Release.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support GraphQL TypedDocumentString

2 participants