Skip to content

Conversation

SimeonGriggs
Copy link
Contributor

Description

Updated README guidance + examples for the actions:

  • sanity.action.document.create
  • sanity.action.document.edit
  • sanity.action.document.delete
  • sanity.action.document.publish

Some of the code examples were just wrong.

Also updated some of the type signatures and parameters for invoking these actions to reference versions instead of drafts.

What to review

As far as I know, these drafts -> versions options work but I have only crudely confirmed it by running some scripts locally.

Testing

I updated the tests to match the new Types changing drafts -> versions

@SimeonGriggs SimeonGriggs requested a review from codebymatt August 1, 2025 12:42
Copy link

vercel bot commented Aug 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
tsdocs-client ⬜️ Ignored (Inspect) Aug 1, 2025 0:42am

Copy link
Contributor

github-actions bot commented Aug 1, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 88.74% 3613 / 4071
🔵 Statements 88.74% 3613 / 4071
🔵 Functions 87.68% 292 / 333
🔵 Branches 90.15% 1081 / 1199
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/types.ts 100% 100% 100% 100%
Generated in workflow #3595 for commit 833379d by the Vitest Coverage Report Action

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