Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(@schematics/angular): remove experimentalDecorators from new pr... #31984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
JeanMeche wants to merge 1 commit into angular:main
base: main
Choose a base branch
Loading
from JeanMeche:exprimentaldecorators
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"noFallthroughCasesInSwitch": true,<% } %>
"skipLibCheck": true,
"isolatedModules": true,
"experimentalDecorators": true,
"importHelpers": true,
"target": "ES2022",
"module": "preserve"
Expand Down
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default async function () {
'projects/my-lib/src/lib/my-lib.ts',
`
function something() {
return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) {
return function (originalMethod: any, context: ClassMethodDecoratorContext) {
console.log("someDecorator");
};
}
Expand Down
4 changes: 2 additions & 2 deletions tests/legacy-cli/e2e/tests/i18n/setup.ts
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export async function setupI18nConfig() {
await writeFile(
'src/app/app.ts',
`
import { Component, Inject, LOCALE_ID } from '@angular/core';
import { Component, inject, LOCALE_ID } from '@angular/core';
import { DatePipe } from '@angular/common';
import { RouterOutlet } from '@angular/router';

Expand All @@ -110,7 +110,7 @@ export async function setupI18nConfig() {
templateUrl: './app.html'
})
export class App {
constructor(@Inject(LOCALE_ID) public locale: string) { }
locale = inject(LOCALE_ID);
title = 'i18n';
jan = new Date(2000, 0, 1);
minutes = 3;
Expand Down
2 changes: 1 addition & 1 deletion tests/legacy-cli/e2e/tests/vitest/tslib-resolution.ts
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default async function () {
'src/app/custom-decorator.ts',
`
export function MyDecorator() {
return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) {
return function (originalMethod: any, context: ClassMethodDecoratorContext) {
// do nothing
};
}
Expand Down
Loading

AltStyle によって変換されたページ (->オリジナル) /