angular/adev/shared-docs/pipeline/api-gen/rendering/transforms
Alan Agius 4bebc9d5e4 docs(docs-infra): update default generic values and add constraints for type parameters in functions (#58548)
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
2024-11-08 17:15:09 +00:00
..
class-transforms.ts docs(docs-infra): Add support for function/method overloads (#57255) 2024-08-13 12:09:01 -07:00
cli-transforms.ts docs(docs-infra): fix CLI commands (#58294) 2024-10-22 07:42:21 -07:00
code-transforms.ts docs(docs-infra): update default generic values and add constraints for type parameters in functions (#58548) 2024-11-08 17:15:09 +00:00
constant-transforms.ts refactor(docs-infra): migrate api-gen from dev-infra into the repo (#57241) 2024-08-05 17:06:29 +00:00
decorator-transforms.ts docs(docs-infra): Add dedicated support for decorators. (#57595) 2024-09-19 14:16:31 -07:00
enum-transforms.ts refactor(docs-infra): migrate api-gen from dev-infra into the repo (#57241) 2024-08-05 17:06:29 +00:00
function-transforms.ts docs(docs-infra): Add support for function/method overloads (#57255) 2024-08-13 12:09:01 -07:00
initializer-api-functions-transform.ts refactor(docs-infra): migrate api-gen from dev-infra into the repo (#57241) 2024-08-05 17:06:29 +00:00
interface-transforms.ts docs(docs-infra): Add support for function/method overloads (#57255) 2024-08-13 12:09:01 -07:00
jsdoc-transforms.ts docs(docs-infra): add support for @remarks (#58523) 2024-11-07 15:49:15 +00:00
member-transforms.ts docs(docs-infra): Add support for function/method overloads (#57255) 2024-08-13 12:09:01 -07:00
module-name.ts refactor(docs-infra): migrate api-gen from dev-infra into the repo (#57241) 2024-08-05 17:06:29 +00:00
params-transforms.ts refactor(docs-infra): migrate api-gen from dev-infra into the repo (#57241) 2024-08-05 17:06:29 +00:00
type-alias-transforms.ts refactor(docs-infra): migrate api-gen from dev-infra into the repo (#57241) 2024-08-05 17:06:29 +00:00
url-transforms.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00