Open skybrian opened 2 weeks ago
This is working as expected similar to tsc:
➜ ~ cat -p a.ts
"".isWellFormed();
➜ ~ deno check a.ts
Check file:///Users/sr/a.ts
error: TS2339 [ERROR]: Property 'isWellFormed' does not exist on type '""'.
"".isWellFormed();
~~~~~~~~~~~~
at file:///Users/sr/a.ts:1:4
➜ ~ tsc a.ts
a.ts:1:4 - error TS2339: Property 'isWellFormed' does not exist on type '""'.
1 "".isWellFormed();
~~~~~~~~~~~~
Found 1 error in a.ts:1
I'll update types at tsc side
@satyarohith This issue is working in progress, not working as designed
Version: Deno 1.44.2
The isWellFormed() method on strings works, but doesn't type-check.
Here is a workaround: