mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Before
```typescript
createNodeRequestHandler(
handler: T
): T;
```
```typescript
class NgIf<T> {
@Input() set ngIf(value: T);
@Input() set ngIfThen(value: TemplateRef<NgIfContext<T>> | null);
@Input() set ngIfElse(value: TemplateRef<NgIfContext<T>> | null);
static ngTemplateGuard_ngIf: "binding";
static ngTemplateContextGuard<T>(dir: NgIf<T>, ctx: any): boolean;
}
```
Now
```typescript
createNodeRequestHandler<T extends NodeRequestHandlerFunction>(
handler: T
): T;
```
```typescript
class NgIf<T = unknown> {
@Input() set ngIf(value: T);
@Input() set ngIfThen(value: TemplateRef<NgIfContext<T>> | null);
@Input() set ngIfElse(value: TemplateRef<NgIfContext<T>> | null);
static ngTemplateGuard_ngIf: "binding";
static ngTemplateContextGuard<T>(dir: NgIf<T>, ctx: any): boolean;
}
```
PR Close #58548
|
||
|---|---|---|
| .. | ||
| class-transforms.ts | ||
| cli-transforms.ts | ||
| code-transforms.ts | ||
| constant-transforms.ts | ||
| decorator-transforms.ts | ||
| enum-transforms.ts | ||
| function-transforms.ts | ||
| initializer-api-functions-transform.ts | ||
| interface-transforms.ts | ||
| jsdoc-transforms.ts | ||
| member-transforms.ts | ||
| module-name.ts | ||
| params-transforms.ts | ||
| type-alias-transforms.ts | ||
| url-transforms.ts | ||