Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rofrischmann committed Jun 9, 2017
1 parent 507e4f0 commit 16c96b9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/fela-dom/src/server/renderToSheetList.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@ const sheetMap = {
keyframes: KEYFRAME_TYPE,
rules: RULE_TYPE
}
type Sheet = {
css: string,
type: RULE_TYPE | KEYFRAME_TYPE | FONT_TYPE | STATIC_TYPE,
media?: string
}

export default function renderToSheetList(renderer: Object): string {
export default function renderToSheetList(renderer: Object): Array<Sheet> {
const sheetList = []

for (const style in sheetMap) {
Expand Down
3 changes: 3 additions & 0 deletions packages/react-fela/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"peerDependencies": {
"react": "*"
},
"devDependencies": {
"fela-dom": "^5.0.0"
},
"dependencies": {
"fela": "^5.0.0",
"prop-types": "^15.5.8"
Expand Down

0 comments on commit 16c96b9

Please sign in to comment.