cloudflare / cloudflare/workerd

AI types breaking change in `BaseAiSpeechRecognition`

Open
#3,357 0 comments 0 reactions 1 assignee Claimed by @workers-devprod View on GitHub
types
Dominant language
C++
Stars
8.7k
Forks
739
Avg merge
2d 20h
Merged PRs (30d)
174

Description

Hi :wave:,

When updating workers-types from 4.20241205.0 to 4.20250109.0 I got a few type errors about AI types.

The one that I consider to be a breaking change (and a dangerous precedent), happened 4.20241218.0 -> 4.20241224.0 (see diff here [https://npmdiff.dev/%40cloudflare%2Fworkers-types/4.20241218.0/4.20241224.0/](https://npmdiff.dev/%40cloudflare%2Fworkers-types/4.20241218.0/4.20241224.0/) )

![Image](https://github.com/user-attachments/assets/edacfde5-4ac9-4112-9897-b70ec21c8434)

As a user who depended on the exported type `BaseAiSpeechRecognition`, this now broke our types in every worker where it was used. I suggest reintroducing it as an alias for the new `BaseAiAutomaticSpeechRecognition` (also the Input and Output types for this category).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.