score:1

Accepted answer

first, it looks like you have a typo with iprops and iprops

next, you can either use interfaces:

interface iparams {
  id: string
}

interface imatch {
  params: iparams
}

interface iprops {
  match: imatch
}

or types:

type iparams = {
  id: string
}

type imatch = {
  params: iparams
}

type iprops = {
  match: imatch
}

or inline:

interface iprops {
  match: {
    params: {
      id: string
    }
  }
}

Related Query

More Query from same tag