DEV Community

Discussion on: Deploy Netlify Functions with TypeScript

Collapse
 
parkan profile image
Arkadiy Kukarkin

ok, I see the issue, the tsconfig I was inheriting from (node12) sets strict: true, which does not pass in this case

specifically, it seems that this fails because strict implies strictNullChecks, and given that this type is nullable it won't pass (if I cast it as { [name: string] : string } it's ok)