DEV Community

Discussion on: TypeScript is wasting my time

Collapse
 
ryands17 profile image
Ryan Dsouza • Edited

I haven't used Nuxt, but the first two can be simply done as follows:

  • Using the string 'null' as a backup like this: Playground

  • Using the exact type of what it expects: Playground or directly pass it in the function instead of declaring a new variable.