Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(vue): add vue typescript support (#726)
This PR brings official TypeScript declerations support for projects with Vue 2.7 and above. Added docs to storybook. Output: ```ts import type * as Baklava from '@Trendyol/baklava/dist/baklava' declare module 'vue' { export interface GlobalComponents { BlAlert: import("vue").Component<Baklava.BlAlert> BlBadge: import("vue").Component<Baklava.BlBadge> BlButton: import("vue").Component<Baklava.BlButton> BlCheckboxGroup: import("vue").Component<Baklava.BlCheckboxGroup> BlDialog: import("vue").Component<Baklava.BlDialog> BlDrawer: import("vue").Component<Baklava.BlDrawer> BlDropdown: import("vue").Component<Baklava.BlDropdown> BlIcon: import("vue").Component<Baklava.BlIcon> BlInput: import("vue").Component<Baklava.BlInput> BlPagination: import("vue").Component<Baklava.BlPagination> BlPopover: import("vue").Component<Baklava.BlPopover> BlProgressIndicator: import("vue").Component<Baklava.BlProgressIndicator> BlRadioGroup: import("vue").Component<Baklava.BlRadioGroup> BlSelect: import("vue").Component<Baklava.BlSelect> BlSwitch: import("vue").Component<Baklava.BlSwitch> BlTabGroup: import("vue").Component<Baklava.BlTabGroup> BlTextarea: import("vue").Component<Baklava.BlTextarea> BlTooltip: import("vue").Component<Baklava.BlTooltip> } } ``` --------- Co-authored-by: Aykut Saraç <[email protected]>
- Loading branch information