Typescript: Argument of type 'RegExpMatchArray' is not assignable to parameter of type 'string'

后端 未结 1 645
一向
一向 2021-01-19 07:03

I have the following expression:

import { persistState } from \'redux-devtools\';

const enhancer = compose(
  applyMiddleware(thunk, router, logger),
  DevT         


        
相关标签:
1条回答
  • 2021-01-19 07:38

    @NitzanTomer is right. It's not the match functions parameter that has a type mismatch. You certainly try to store the return value of the match function in a string typed variable / return it from a :string function / pass it as a string parameter.

    0 讨论(0)
提交回复
热议问题