wc-catalogue / blaze-elements

Web Component Blaze Elements
https://wc-catalogue.github.io/blaze-elements/
MIT License
10 stars 4 forks source link

refactor: resolve unregistered class exports for casting and type annotation #227

Open Hotell opened 7 years ago

Hotell commented 7 years ago

Current behavior

If we wanna use type as raw Class we have to import it from subpath

import RawButton from '@blaze-elements/button/Button';

const myBtn: RawButton;

Expected behavior

We need to resolve proper naming or how to export things some other way, let's say so I'll be able to do this:

import {Button} from '@blaze-elements/button';

const myBtn: Button;