From 9a7c6628beb56f58f2010aa2ef5679fc65fed60b Mon Sep 17 00:00:00 2001 From: Jan Miksovsky Date: Thu, 18 May 2017 10:33:28 -0700 Subject: [PATCH] Document jsDoc annotation for a parameter that's a class constructor. --- JSDoc-support-in-JavaScript.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/JSDoc-support-in-JavaScript.md b/JSDoc-support-in-JavaScript.md index c557d00..73c585a 100644 --- a/JSDoc-support-in-JavaScript.md +++ b/JSDoc-support-in-JavaScript.md @@ -135,6 +135,14 @@ let myArrow = x => x * x; var sfc = (test) =>
{test.a.charAt(0)}
; +/** + * A parameter can be a class constructor. + * + * @param {{new(...args: any[]): Object}} C - The class to register + */ +function registerClass(C) {} + + // === Below forms are not supported ===