Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CommonJS imports support destructuring+property access (#40702)
* CommonJS imports support destructuring+property access Fixes #40578 for prettier * will I ever remember semicolons? haha no * move code around * move function declaration closer to use * Add missing space after `if` Thanks to @weswigham for noticing this. Somehow it passed the linter.
- Loading branch information
Showing
4 changed files
with
37 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
tests/baselines/reference/jsDeclarationsTypeReferences2.errors.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,4 +38,4 @@ export declare const o: { | |
m: number; | ||
}; | ||
//// [index.d.ts] | ||
export const thing: any; | ||
export const thing: number; |
24 changes: 12 additions & 12 deletions
24
tests/baselines/reference/jsDeclarationsTypeReferences2.types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters