diff --git a/src/index.js b/src/index.js index 956eca0..c872e0a 100644 --- a/src/index.js +++ b/src/index.js @@ -17,6 +17,7 @@ type AsyncComponent = | (() => Promise>) type Key = string | null | ((module: ?Object) => Component) type OnLoad = (module: Object) => void +type OnError = (error: Object) => void type PathResolve = Id | (() => Id) type Options = { loading?: LoadingCompponent, @@ -29,7 +30,8 @@ type Options = { chunkName?: string, timeout?: number, key?: Key, - onLoad?: OnLoad + onLoad?: OnLoad, + onError?: OnError } type Props = {