Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion docs/guide/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ there you go.
``` typescript
import {
// main APIs
Client,
messagingApi,
middleware,

// exceptions
Expand All @@ -69,6 +69,9 @@ import {
TemplateMessage,
WebhookEvent,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are they old...?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, exactly!
I've fixed to use ones generated by OpenAPI.

} from "@line/bot-sdk";

// For example, you can use MessagingApiClient like this:
const { MessagingApiClient } = messagingApi;
```

Message object and webhook event types can be also imported from `@line/bot-sdk`,
Expand Down