79202821

Date: 2024-11-19 09:30:40
Score: 1
Natty:
Report link

I found a solution in the official deno documentation. The project needs node types to type check lists like string[] correctly. I faced the same issue with types like Array<T>. However, declaring :

/// <reference types="npm:@types/node" />

At the head of the .mts file fixed everything.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Pehnny