Skip to content

Commit b1d1490

Browse files
committed
fix: fix types for interpolations
1 parent 0c6090f commit b1d1490

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/core/css.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ function css() {
99
module.exports = css;
1010

1111
/* ::
12-
declare module.exports: (string[], Array<string | number | {}>) => string;
12+
declare module.exports: (strings: string[], ...exprs: Array<string | number | {}>) => string;
1313
*/

src/react/styled.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ if (process.env.NODE_ENV !== 'production') {
7070
/* ::
7171
type StyledComponent<T> = React.ComponentType<T & { as?: React$ElementType }>;
7272
73-
type StyledTag<T> = (string[], Array<string | number | {} | (T => string | number)>) => StyledComponent<T>;
73+
type StyledTag<T> = (strings: string[], ...exprs: Array<string | number | {} | (T => string | number)>) => StyledComponent<T>;
7474
7575
declare module.exports: {|
7676
<T>(T): StyledTag<React.ElementConfig<T>>,

0 commit comments

Comments
 (0)