All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Workers - Validate your generated types with `wrangler types --check`

5mo ago

Source

CloudflareWorkers - Validate your generated types with `wrangler types --check`cloudflare.com
Snippet from the RSS feed
Wrangler now supports a --check flag for the wrangler types command. This flag validates that your generated types are up to date without writing any changes to disk. This is useful in CI/CD pipelines where you want to ensure that developers have regenerated their types after making changes to their Wrangler configuration. If the types are out of date, the command will exit with a non-zero status code. npx wrangler types --check If your types are up to date, the command will succeed silently. If they are out of date, you'll see an error message indicating which files need to be regenerated. For more information, see the Wrangler types documentation .

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.