Skip to content

Commit

Permalink
Merge pull request #83 from Alex-Krautmann/typescript-definitions
Browse files Browse the repository at this point in the history
fix: Adds clearChunks to typescript definition for react-universal-co…
  • Loading branch information
faceyspacey authored Dec 1, 2017
2 parents 066ebde + 3291733 commit 9a9cee0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ declare module 'react-universal-component' {
* _Note: this only applies to the client when
* your `UniversalComponent` uses dynamic expressions to switch between multiple
* components._
*
*
* default: `false`
*/
alwaysDelay: boolean;
Expand All @@ -121,7 +121,7 @@ declare module 'react-universal-component' {
* A callback function that receives the entire module.
* It allows you to export and put to use things other than your
* default component export, like reducers, sagas, etc.
*
*
* `onLoad` is fired directly before the component is rendered so you can setup
* any reducers/etc it depends on. Unlike the `onAfter` prop, this option to the
* `universal` HOC is only fired the first time the module is received. Also
Expand Down Expand Up @@ -166,7 +166,8 @@ declare module 'react-universal-component' {
}

declare module 'react-universal-component/server' {
const clearChunks: () => void;
const flushChunkNames: () => string[];

export { flushChunkNames };
export { clearChunks, flushChunkNames };
}

0 comments on commit 9a9cee0

Please sign in to comment.