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

타입 정의파일과 실제 컴포넌트 이름 불일치 문제 #749

Open
dungsil opened this issue Jun 17, 2022 · 4 comments
Open

타입 정의파일과 실제 컴포넌트 이름 불일치 문제 #749

dungsil opened this issue Jun 17, 2022 · 4 comments
Labels

Comments

@dungsil
Copy link

dungsil commented Jun 17, 2022

Describe the bug
타입스크립트에서 컴포넌트를 import 할 경우 오류 발생

To Reproduce

<script lang="ts">
import { barChart } from '@toast-ui/vue-chart' // <  TS52724: '"@toast-ui/vue-chart"' has no exported member named 'barChart'. Did you mean 'BarChart'?
// ...
</script>

Screenshots
image

Version
tui.chart : 4.4.3
@toast-ui/vue-chart : 4.4.3

Additional context

실제 코드에서는 camel case 방식으로 export를 하지만 타입은 pascal case로 정의 되어있어 오류가 발생하는 거 같습니다.

export {
areaChart,
barChart,
boxPlotChart,
bubbleChart,
bulletChart,
columnChart,
columnLineChart,
heatmapChart,
lineChart,
lineAreaChart,
lineScatterChart,
nestedPieChart,
pieChart,
radarChart,
scatterChart,
treemapChart,
radialBarChart,
gaugeChart,
};

export class BarChart extends Vue {
invoke<T extends BarChartFnKeys>(
fname: T,
...args: Parameters<BarChartCtor[T]>
): ReturnType<BarChartCtor[T]>;
getRootElement(): HTMLElement;
}

@dungsil dungsil changed the title 타입스크립트에서 TS2724 오류 타입 정의파일과 실제 컴포넌트 이름 불일치 문제 Jun 29, 2022
@jwlee1108
Copy link
Contributor

@dungsil Thank you for the issue. we'll fix it.

@stale
Copy link

stale bot commented Jul 31, 2022

This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!

@stale stale bot added the inactive label Jul 31, 2022
@dungsil
Copy link
Author

dungsil commented Aug 2, 2022

Hello @jwlee1108,
Can I know the expected date of fix?

@stale
Copy link

stale bot commented Sep 21, 2022

This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!

@stale stale bot added the inactive label Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants