mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-11 10:00:13 -06:00
Document jsDoc annotation for a parameter that's a class constructor.
parent
a2c6cbb2d4
commit
9a7c6628be
@ -135,6 +135,14 @@ let myArrow = x => x * x;
|
||||
var sfc = (test) => <div>{test.a.charAt(0)}</div>;
|
||||
|
||||
|
||||
/**
|
||||
* 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 ===
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user