Skip to content

Commit

Permalink
fix: fix types for interpolations
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Oct 17, 2018
1 parent 0c6090f commit b1d1490
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ function css() {
module.exports = css;

/* ::
declare module.exports: (string[], Array<string | number | {}>) => string;
declare module.exports: (strings: string[], ...exprs: Array<string | number | {}>) => string;
*/
2 changes: 1 addition & 1 deletion src/react/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ if (process.env.NODE_ENV !== 'production') {
/* ::
type StyledComponent<T> = React.ComponentType<T & { as?: React$ElementType }>;
type StyledTag<T> = (string[], Array<string | number | {} | (T => string | number)>) => StyledComponent<T>;
type StyledTag<T> = (strings: string[], ...exprs: Array<string | number | {} | (T => string | number)>) => StyledComponent<T>;
declare module.exports: {|
<T>(T): StyledTag<React.ElementConfig<T>>,
Expand Down

0 comments on commit b1d1490

Please sign in to comment.