mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-13 22:00:59 -05:00
Prototype implementation of umdExport/umdGlobal
This commit is contained in:
@@ -8,6 +8,7 @@ interface DiagnosticDetails {
|
||||
reportsDeprecated?: {};
|
||||
isEarly?: boolean;
|
||||
elidedInCompatabilityPyramid?: boolean;
|
||||
retired?: boolean; // indicates the code has been retired and is present only to prevent reuse
|
||||
}
|
||||
|
||||
type InputDiagnosticMessageTable = Map<string, DiagnosticDetails>;
|
||||
@@ -34,6 +35,7 @@ function main(): void {
|
||||
const diagnosticMessages: InputDiagnosticMessageTable = new Map();
|
||||
for (const key in diagnosticMessagesJson) {
|
||||
if (Object.hasOwnProperty.call(diagnosticMessagesJson, key)) {
|
||||
if (diagnosticMessagesJson[key].retired) continue;
|
||||
diagnosticMessages.set(key, diagnosticMessagesJson[key]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user