From 8913d3e4075e82a04a175f2ae2cee6ad045aa0f2 Mon Sep 17 00:00:00 2001 From: Matthieu Riegler Date: Tue, 1 Aug 2023 12:03:05 +0200 Subject: [PATCH] docs: fix warning about an unknown decorator (#51237) dgeni was complaning about an unknown decorator (`@Input`) PR Close #51237 --- packages/core/src/util/coercion.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/core/src/util/coercion.ts b/packages/core/src/util/coercion.ts index 5f1c2e67697..0f8b05298b3 100644 --- a/packages/core/src/util/coercion.ts +++ b/packages/core/src/util/coercion.ts @@ -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 @@ -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 */