Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: types #626

Merged
merged 1 commit into from
Nov 22, 2023
Merged

docs: types #626

merged 1 commit into from
Nov 22, 2023

Conversation

xiaohuoni
Copy link
Member

@xiaohuoni xiaohuoni commented Nov 22, 2023

``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);
});
};

Copy link

changeset-bot bot commented Nov 22, 2023

🦋 Changeset detected

Latest commit: 254efaa

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

Copy link

vercel bot commented Nov 22, 2023

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

@xiaohuoni xiaohuoni merged commit 45a1bf1 into master Nov 22, 2023
2 of 3 checks passed
@xiaohuoni xiaohuoni deleted the feat-add-plugin-azure branch November 22, 2023 09:40
@github-actions github-actions bot mentioned this pull request Nov 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant