Closed
Description
Summary
deno's implementation is earlier than tsc, so it has its own error format.
But presently, tsc has its standard error format, and users would use it with tsc isolatedDeclaration: true
in tsconfig.json
and wish they both have the same error diagnostic behavior
there is one case
input
import { useState } from 'react';
import './App.css';
function App() {
return (
<div className="App"></div>
);
}
export default App;
expected behavior
src/App.tsx(4,10): error TS9007: Function must have an explicit return type annotation with --isolatedDeclarations.
actual behavior
output successfully
import { useState } from 'react';
import './App.css';
declare function App(); // -> 'App' implicitly has an 'any' return type
export default App;