Binding element 'slug' implicitly has an 'any' type.ts(7031)

default discord avatar
taun2160
2 months ago
1
Binding element 'slug' implicitly has an 'any' type.ts(7031)


I don't understand, what problem is it pointing to?



I'm copy/pasting from:


https://github.dev/payloadcms/website/tree/main/src
  • discord user avatar
    jarrod_not_jared
    Payload Team
    2 months ago

    your tsconfig must be stricter. I would recommend looking up how to type nextJS page props

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.