-
-
Notifications
You must be signed in to change notification settings - Fork 501
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(codegen): print comments in
TSTypeLiteral
(#8679)
fixes #8665
- Loading branch information
Showing
11 changed files
with
168 additions
and
122 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
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
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
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
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
29 changes: 15 additions & 14 deletions
29
crates/oxc_isolated_declarations/tests/snapshots/as-const.snap
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 |
---|---|---|
@@ -1,24 +1,25 @@ | ||
--- | ||
source: crates/oxc_isolated_declarations/tests/mod.rs | ||
input_file: crates/oxc_isolated_declarations/tests/fixtures/as-const.ts | ||
snapshot_kind: text | ||
--- | ||
``` | ||
==================== .D.TS ==================== | ||
declare const F: { | ||
readonly string: "string"; | ||
readonly templateLiteral: "templateLiteral"; | ||
readonly number: 1.23; | ||
readonly bigint: -123n; | ||
readonly boolean: true; | ||
readonly null: null; | ||
readonly undefined: undefined; | ||
readonly function: (a: string) => void; | ||
readonly arrow: (a: string) => void; | ||
readonly string: "string" | ||
readonly templateLiteral: "templateLiteral" | ||
readonly number: 1.23 | ||
readonly bigint: -123n | ||
readonly boolean: true | ||
readonly null: null | ||
readonly undefined: undefined | ||
readonly function: (a: string) => void | ||
readonly arrow: (a: string) => void | ||
readonly object: { | ||
readonly a: "a"; | ||
readonly b: "b"; | ||
}; | ||
readonly array: readonly ["a", undefined, { readonly b: "\n" }]; | ||
readonly a: "a" | ||
readonly b: "b" | ||
} | ||
readonly array: readonly ["a", undefined, { | ||
readonly b: "\n" | ||
}] | ||
}; |
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
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
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
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
Oops, something went wrong.