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

feature request - support an export entrypoint for messagingApi #1021

Open
sacrosanctic opened this issue Oct 28, 2024 · 0 comments
Open

feature request - support an export entrypoint for messagingApi #1021

sacrosanctic opened this issue Oct 28, 2024 · 0 comments
Assignees

Comments

@sacrosanctic
Copy link

It would be nice if I could import like this

import { MessagingApiClient } from '@line/bot-sdk/messagingApi ';

Currently, these are the import options

// ES modules or TypeScript
import { messagingApi } from '@line/bot-sdk';
const { MessagingApiClient } = messagingApi;
// OR
import * as line from '@line/bot-sdk';
const MessagingApiClient = line.messagingApi.MessagingApiClient;

// CommonJS
const MessagingApiClient = require('@line/bot-sdk').messagingApi.MessagingApiClient;
@mokuzon mokuzon removed the bug label Nov 5, 2024
@Yang-33 Yang-33 added bug keep and removed bug labels Nov 5, 2024
@eucyt eucyt assigned eucyt and mokuzon and unassigned eucyt Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants