Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

[WIP] feat(typescript): use JSX.IntrinsicElements for properties #320

Conversation

luke-john
Copy link
Collaborator

This replaces the use of React.HTMLProps and React.SVGAttributes with JSX.IntrinsicElements.

Inspired by styled-components/styled-components#1084

What:

Replaces the use of React.HTMLProps and React.SVGAttributes with JSX.IntrinsicElements.

Why:

The use of these came from when the typings were first based off styled-component.

How:

Checklist:

  • Documentation N/A
  • Tests
  • Ready to be merged

I haven't tested this thoroughly, so whilst it all seems fine, I'm not sure this is ok to land just yet. I'll try and do some testing with a large glamorous codebase in the coming days.

This replaces the use of `React.HTMLProps` and `React.SVGAttributes` with `JSX.IntrinsicElements`.

Inspired by styled-components/styled-components#1084
@codecov-io
Copy link

codecov-io commented Sep 3, 2017

Codecov Report

Merging #320 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #320   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          10     10           
  Lines         172    172           
  Branches       47     47           
=====================================
  Hits          172    172

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3751b39...e05c8ce. Read the comment docs.

@luke-john
Copy link
Collaborator Author

I'm going to close this pr for now.

I may pick this back up again when I get time, however if someone is interested in seeing this land feel free to run with it 🙂 .

@luke-john luke-john closed this Oct 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants