Dunqing
8ce794d740
fix(isolated-declarations): inferring an incorrect return type when there is an arrow function inside a function ( #3768 )
2024-06-19 15:43:15 +00:00
Dunqing
4134de8dcf
feat(isolated-declarations): add ts error code to the error message ( #3755 )
2024-06-19 14:33:29 +00:00
Dunqing
94202de250
feat(isolated-declarations): add export {} when needed ( #3754 )
...
https://github.com/microsoft/TypeScript/pull/58912
2024-06-19 14:33:27 +00:00
Dunqing
d29316a5ff
fix(isolated-declarations): transform incorrectly when there are multiple functions with the same name ( #3753 )
2024-06-19 14:33:25 +00:00
Dunqing
e95d8e3990
feat(isolated-declarations): shrink span for arrow function that needs an explicit return type ( #3752 )
...
Current `span` we can't be consistent with typescript.
We report the following
```ts
(a, b) =>
^^^^^^^^^
{ }
^
```
TypeScript reports the following
```ts
(a, b) =>
^^^^^^^^^
{}
```
The TypeScript only reports the first line, if we want it to be exactly the same we need to find the first newline position
2024-06-19 14:33:24 +00:00
Dunqing
bf1c250d56
fix(isolated-declarations): false positives for non-exported binding elements ( #3751 )
2024-06-19 14:06:08 +00:00
Dunqing
df9971da4c
feat(isolated-declarations): improve inferring the return type from function ( #3750 )
2024-06-19 14:06:05 +00:00
Dunqing
4aea2b158c
feat(isolated-declarations): improve inferring the type of accessor ( #3749 )
2024-06-19 14:06:02 +00:00
Dunqing
9ea30c41ff
feat(isolated-declarations): treat AssignmentPattern as optional ( #3748 )
2024-06-19 14:05:59 +00:00
Boshen
8c02c1dac3
chore(isolated-declarations): add snapshot testing ( #3756 )
2024-06-19 09:20:17 +00:00