prismicio / prismic-ts-codegen

A Prismic model-to-TypeScript-type generator.
Apache License 2.0
18 stars 6 forks source link

feat: support new `@prismicio/client`'s `WriteClient` #65

Open lihbr opened 1 week ago

lihbr commented 1 week ago

[!IMPORTANT] This PR is only to be reviewed once we're aligned on the upstream client PR.

Resolves: required after https://github.com/prismicio/prismic-client/pull/350

Description

This is a downstream PR related to this bigger @prismicio/client PR: https://github.com/prismicio/prismic-client/pull/350

It adds additional module augments for the new WriteClient and Migration classes introduced in @prismicio/client

Checklist

How to QA [^1]

See snapshot: https://github.com/prismicio/prismic-ts-codegen/pull/65/files#diff-da5cd8935e1941a082f260623158b3a2a0a41fd54bf297b36c15f00ad4afe165

[^1]: Please use these labels when submitting a review: :question: #ask: Ask a question. :bulb: #idea: Suggest an idea. :warning: #issue: Strongly suggest a change. :tada: #nice: Share a compliment.