Skip to content

Commit 9a9cee0

Browse files
authored
Merge pull request #83 from Alex-Krautmann/typescript-definitions
fix: Adds clearChunks to typescript definition for react-universal-co…
2 parents 066ebde + 3291733 commit 9a9cee0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index.d.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ declare module 'react-universal-component' {
9999
* _Note: this only applies to the client when
100100
* your `UniversalComponent` uses dynamic expressions to switch between multiple
101101
* components._
102-
*
102+
*
103103
* default: `false`
104104
*/
105105
alwaysDelay: boolean;
@@ -121,7 +121,7 @@ declare module 'react-universal-component' {
121121
* A callback function that receives the entire module.
122122
* It allows you to export and put to use things other than your
123123
* default component export, like reducers, sagas, etc.
124-
*
124+
*
125125
* `onLoad` is fired directly before the component is rendered so you can setup
126126
* any reducers/etc it depends on. Unlike the `onAfter` prop, this option to the
127127
* `universal` HOC is only fired the first time the module is received. Also
@@ -166,7 +166,8 @@ declare module 'react-universal-component' {
166166
}
167167

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

171-
export { flushChunkNames };
172+
export { clearChunks, flushChunkNames };
172173
}

0 commit comments

Comments
 (0)