Skip to content

Commit 46efb13

Browse files
authored
Fix typo in API.md (clearCompileErrors -> clearCompileError) (#797)
1 parent 88e1441 commit 46efb13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/API.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@ If the default `entry` is used, the file should contain two more **NAMED** expor
192192

193193
```ts
194194
function showCompileError(webpackErrorMessage: string) {}
195-
function clearCompileErrors() {}
195+
function clearCompileError() {}
196196
```
197197

198198
- `showCompileError` is invoked when an error occurred during a Webpack compilation
199199
(NOTE: `webpackErrorMessage` might be ANSI encoded depending on the integration);
200-
- `clearCompileErrors` is invoked when a new Webpack compilation is started (i.e. HMR rebuild).
200+
- `clearCompileError` is invoked when a new Webpack compilation is started (i.e. HMR rebuild).
201201

202202
> Note: if you want to use `react-error-overlay` as a value to this option,
203203
> you should instead use `react-dev-utils/refreshOverlayInterop` or implement a similar interop.

0 commit comments

Comments
 (0)