Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

fix(types): make *Props interface extendable #1042

Merged
merged 8 commits into from
Mar 12, 2019
Merged

Conversation

layershifter
Copy link
Member

Fixes #1026.

@@ -18,6 +18,8 @@ export interface AnimatedComponentProps {
export interface UIComponentProps<P = any, V = any>
extends StyledComponentProps<P, V>,
AnimatedComponentProps {
[key: string]: any
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of our components (except, Flex) that actually should have extendable props are using this interface

@codecov
Copy link

codecov bot commented Mar 11, 2019

Codecov Report

Merging #1042 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1042   +/-   ##
=======================================
  Coverage   81.77%   81.77%           
=======================================
  Files         687      687           
  Lines        8822     8822           
  Branches     1498     1498           
=======================================
  Hits         7214     7214           
  Misses       1593     1593           
  Partials       15       15
Impacted Files Coverage Δ
packages/react/src/components/Flex/Flex.tsx 100% <ø> (ø) ⬆️
...ckages/react/src/components/Portal/PortalInner.tsx 100% <100%> (ø) ⬆️
...kages/react/src/components/Animation/Animation.tsx 90% <100%> (ø) ⬆️
packages/react/src/components/Ref/Ref.tsx 100% <100%> (ø) ⬆️
packages/react/src/components/Portal/Portal.tsx 98.18% <100%> (ø) ⬆️

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 04c2878...2032ed5. Read the comment docs.

…com/stardust-ui/react into fix/types-extendable

# Conflicts:
#	package.json
#	packages/react/src/components/Ref/Ref.tsx
#	yarn.lock
Copy link
Collaborator

@bmdalex bmdalex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@layershifter layershifter merged commit 469e8e5 into master Mar 12, 2019
@delete-merged-branch delete-merged-branch bot deleted the fix/types-extendable branch March 12, 2019 14:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🧰 fix Introduces fix for broken behavior. 🚀 ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants