Skip to content

Commit

Permalink
docs: fix warning about an unknown decorator (angular#51237)
Browse files Browse the repository at this point in the history
dgeni was complaning about an unknown decorator (`@Input`)

PR Close angular#51237
  • Loading branch information
JeanMeche authored and alxhub committed Aug 1, 2023
1 parent d86e637 commit 8913d3e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/core/src/util/coercion.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
* Intended to be used as a transform function of an input.
*
* @usageNotes
* @Input({ transform: booleanAttribute }) status!: boolean;
*
* ```typescript
* @Input({ transform: booleanAttribute }) status!: boolean;
* ```
* @param value Value to be transformed.
*
* @publicApi
Expand All @@ -28,7 +29,9 @@ export function booleanAttribute(value: unknown): boolean {
* @param fallbackValue Value to use if the provided value can't be parsed as a number.
*
* @usageNotes
* ```typescript
* @Input({ transform: numberAttribute }) id!: number;
* ```
*
* @publicApi
*/
Expand Down

0 comments on commit 8913d3e

Please sign in to comment.