alitajs / alita

A React framework based on umi.
https://alitajs.com
MIT License
788 stars 85 forks source link

docs: types #626

Closed xiaohuoni closed 9 months ago

xiaohuoni commented 9 months ago

``ts import { IApi } from 'umi'; import type { IOnIntlAzure, IAzureSend } from '@alita/plugin-azure';

let _send: IAzureSend; export default (api: IApi & { onIntlAzure: IOnIntlAzure }) => { api.onIntlAzure(async ({ send }) => { _send = send; }); api.onDevCompileDone(async () => { const result = await _send('你好'); console.log(result.choices[0]!.message?.content); }); };

changeset-bot[bot] commented 9 months ago

🦋 Changeset detected

Latest commit: 254efaa26c027ce50054b1190601c815b5bdd8ef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------------- | ----- | | @alita/plugin-azure | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

vercel[bot] commented 9 months ago

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

Name Status Preview Updated (UTC)
alita-alita 🔄 Building (Inspect) Visit Preview Nov 22, 2023 9:39am