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

Refactor DOM utils inside hint to @hint/utils #2192

Closed
molant opened this issue Apr 9, 2019 · 1 comment · Fixed by #2218
Closed

Refactor DOM utils inside hint to @hint/utils #2192

molant opened this issue Apr 9, 2019 · 1 comment · Fixed by #2218
Assignees
Labels
Milestone

Comments

@molant
Copy link
Member

molant commented Apr 9, 2019

These should be able to be moved through a combination of moving any types they need to @hint/utils as well. The few exceptions are:

  1. Use of HTMLElement in content-type
    • Replace with a minimal local interface
  2. Use of Engine in traverse
    • Replace with EventEmitter2

Another thing to do is to re-export the types from hint.
Also classes like HTMLDocument might be moved as well.

@molant molant added the area:api label Apr 9, 2019
@antross
Copy link
Member

antross commented Apr 9, 2019

These should be able to be moved through a combination of moving any types they need to @hint/utils as well. The few exceptions are:

  1. Use of HTMLElement in content-type
    • Replace with a minimal local interface
  2. Use of Engine in traverse
    • Replace with EventEmitter2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants