- From: Peter Linss <notifications@github.com>
- Date: Mon, 29 Jul 2024 21:00:28 -0700
- To: w3ctag/design-reviews <design-reviews@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 30 July 2024 04:00:32 UTC
> So I think what you're suggesting ends up converting the API from something like > > const capabilities = await ai.translator.capabilities(); > const translator = await ai.translator.create(); > > to something like > > const capabilities = await AITranslatorCapabilities.get(); > const translator = await AITranslator.create(); Capabilities could simply be a static method on the translator, no? `const capabilities = await Translator.capabilities();` -- Reply to this email directly or view it on GitHub: https://github.com/w3ctag/design-reviews/issues/948#issuecomment-2257410401 You are receiving this because you are subscribed to this thread. Message ID: <w3ctag/design-reviews/issues/948/2257410401@github.com>
Received on Tuesday, 30 July 2024 04:00:32 UTC