Skip to content

Commit

Permalink
style(Fixing flow and making sure to return ReportChunks to server.js):
Browse files Browse the repository at this point in the history
  • Loading branch information
riley napier authored and riley napier committed Dec 5, 2017
1 parent 0f32c1e commit 3609919
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
flushModuleIds: require('./dist/requireUniversalModule').flushModuleIds,
flushChunkNames: require('./dist/requireUniversalModule').flushChunkNames,
clearChunks: require('./dist/requireUniversalModule').clearChunks
clearChunks: require('./dist/requireUniversalModule').clearChunks,
ReportChunks: require('./dist/report-chunks').default
}
9 changes: 8 additions & 1 deletion src/report-chunks.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
// @flow

import React from 'react'
import PropTypes from 'prop-types'

export default class ReportChunks extends React.Component {
type Props = {
report: Function,
children: Object
}

export default class ReportChunks extends React.Component<void, Props, *> {
static propTypes = {
report: PropTypes.func.isRequired
}
Expand Down

0 comments on commit 3609919

Please sign in to comment.