| 86 | type State = { field: 'string' } |
| 87 | |
| 88 | const customMiddleware: Middleware<{}, State> = api => next => action => { |
| 89 | api.getState().field |
| 90 | // @ts-expect-error |
| 91 | api.getState().wrongField |
| 92 | |
| 93 | return next(action) |
| 94 | } |
| 95 | |
| 96 | return customMiddleware |
| 97 | } |