Skip to content

Commit 5ff5d98

Browse files
szuendDevtools-frontend LUCI CQ
authored andcommitted
[l10n] Fix 'generated/Deprecation.ts'
The CL https://crrev.com/c/6287325 broke the extraction of the generated deprecation UI messages. This CL fixes it by appending the now necessary `as const` suffix. [email protected] Bug: None Change-Id: I63803bcc9b40adba0d15559d5dc3400ef8374621 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6297980 Auto-Submit: Simon Zünd <[email protected]> Reviewed-by: Kim-Anh Tran <[email protected]> Commit-Queue: Kim-Anh Tran <[email protected]> Commit-Queue: Simon Zünd <[email protected]>
1 parent 97f50d8 commit 5ff5d98

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

front_end/generated/Deprecation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export const UIStrings = {
234234
* @description Warning displayed to developers that instead of using `supportsSession()`, which returns a promise that resolves if the XR session can be supported and rejects if not, they should use `isSessionSupported()` which will return a promise which resolves to a boolean indicating if the XR session can be supported or not, but may reject to throw an exception.
235235
*/
236236
XRSupportsSession: "`supportsSession()` is deprecated. Please use `isSessionSupported()` and check the resolved boolean value instead.",
237-
};
237+
} as const;
238238

239239
export interface DeprecationDescriptor {
240240
milestone?: number;

scripts/build/generate_deprecations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def deprecations_from_file(file_name):
8787
f.write(" * @description %s\n" % note)
8888
f.write(" */\n")
8989
f.write(" %s: %s,\n" % (name, json.dumps(message)))
90-
f.write("};\n")
90+
f.write("} as const;\n")
9191
f.write("\n")
9292
f.write("export interface DeprecationDescriptor {\n")
9393
f.write(" milestone?: number;\n")

0 commit comments

Comments
 (0)