feat: typescript 3.6 support (#32946)
BREAKING CHANGE: typescript 3.4 and 3.5 are no longer supported, please update to typescript 3.6 Fixes #32380 PR Close #32946
This commit is contained in:

committed by
Matias Niemelä

parent
117ca7cf39
commit
86e1e6c082
@ -2533,9 +2533,12 @@ describe('i18n support in the template compiler', () => {
|
||||
$I18N_0$ = $MSG_EXTERNAL_963542717423364282$$APP_SPEC_TS_0$;
|
||||
}
|
||||
else {
|
||||
$I18N_0$ = $localize \`\n Some text\n $` +
|
||||
$I18N_0$ = $localize \`
|
||||
Some text
|
||||
$` +
|
||||
String.raw `{"\uFFFD#3\uFFFD"}:START_TAG_SPAN:Text inside span$` +
|
||||
String.raw `{"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SPAN:\n \`;
|
||||
String.raw `{"\uFFFD/#3\uFFFD"}:CLOSE_TAG_SPAN:
|
||||
\`;
|
||||
}
|
||||
…
|
||||
template: function MyComponent_Template(rf, ctx) {
|
||||
|
@ -39,7 +39,8 @@ describe('expression diagnostics', () => {
|
||||
if (typeof messageText == 'string') {
|
||||
return messageText;
|
||||
} else {
|
||||
if (messageText.next) return messageText.messageText + messageToString(messageText.next);
|
||||
if (messageText.next)
|
||||
return messageText.messageText + messageText.next.map(messageToString);
|
||||
return messageText.messageText;
|
||||
}
|
||||
}
|
||||
|
@ -154,8 +154,8 @@ describe('ngc transformer command-line', () => {
|
||||
|
||||
const exitCode = main(['-p', basePath], errorSpy);
|
||||
expect(errorSpy).toHaveBeenCalledWith(
|
||||
'test.ts(3,9): error TS2349: Cannot invoke an expression whose type lacks a call signature. ' +
|
||||
'Type \'String\' has no compatible call signatures.\n');
|
||||
'test.ts(3,9): error TS2349: This expression is not callable.\n' +
|
||||
' Type \'String\' has no call signatures.\n');
|
||||
expect(exitCode).toEqual(1);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user