Hey all,Building upon previous work by Googler @Pascal Birchler, one of our Google Developer Experts (GDE), @Christian Liebel, has stepped up and created TypeScript types for our Built-in AI APIs, with a commitment to keep them maintained (to support Christ, I'm a co-owner, too). Pascal has already migrated his WordPress AI experiments to depend on the package with no issues. If you spot a problem in the source code, please let us know by filing an Issue.Install these types with npm:
npm install --save-dev @types/dom-chromium-aiYour IDE should then pick them up, and code completion should work as in the screenshot. If it doesn't, add a comment to the beginning of the relevant file:/// <reference types="dom-chromium-ai" />We're confident that this will make your coding experience a lot better 😆. Thanks to everyone involved in making this happen!Cheers,Tom