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

Improve typings of theming lib #5988

Merged
merged 1 commit into from Mar 11, 2019
Merged

Improve typings of theming lib #5988

merged 1 commit into from Mar 11, 2019

Conversation

gaetanmaisse
Copy link
Member

What I did

Exported styled was implicitly of type CreateStyled<any>, now it is typed using SB Theme.
This stronger typing reveals an invalid property use in a11y addon.

How to test

SB must compile.

@gaetanmaisse gaetanmaisse added maintenance User-facing maintenance tasks typescript theming labels Mar 9, 2019
Exported `styled` was implicitly of type `CreateStyled<any>`, now it is typed using SB Theme.
This stronger typing reveals a missing `bar` property in background default object.
@codecov
Copy link

codecov bot commented Mar 11, 2019

Codecov Report

Merging #5988 into next will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##             next    #5988   +/-   ##
=======================================
  Coverage   34.92%   34.92%           
=======================================
  Files         648      648           
  Lines        9517     9517           
  Branches     1352     1381   +29     
=======================================
  Hits         3324     3324           
  Misses       5576     5576           
  Partials      617      617
Impacted Files Coverage Δ
lib/theming/src/base.ts 100% <ø> (ø) ⬆️
lib/theming/src/create.ts 89.58% <ø> (ø) ⬆️
lib/theming/src/index.ts 0% <0%> (ø) ⬆️

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 3f94f5b...fcdc0ba. Read the comment docs.

@gaetanmaisse gaetanmaisse merged commit 1e71612 into storybookjs:next Mar 11, 2019
@gaetanmaisse gaetanmaisse deleted the improve-lib-theming-ts-typing branch March 11, 2019 19:11
@shilman shilman added this to the v5.1.0 milestone Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance User-facing maintenance tasks theming typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants