DEV Community

Discussion on: Using getStaticProps and getStaticPaths with TypeScript - Next.js

Collapse
cucheng profile image
Trương Đình Chiến

I just set :
const slug = params?.slug as string;

Collapse
jameswallis profile image
James Wallis Author

Nice!