DEV Community

Discussion on: Create object property string path generator with typescript

Collapse
 
goququ profile image
goququ • Edited

Hi i've tried to use your code, but there is an error.

dev-to-uploads.s3.amazonaws.com/up...

Collapse
 
bwca profile image
Volodymyr Yepishev

Might it be that the version of typescript you are trying to use it with is under version 4? Template Literal Types are not available in versions below 4.

You can check it in the playground: once you choose version under 4, you start getting errors