UNPKG

470 BTypeScriptView Raw
1/// <reference types="react" />
2/**
3 * Represents anything that has a `name` property such as Functions.
4 */
5export interface Named {
6 name?: string;
7}
8/**
9 * Generic interface defining constructor types, such as classes. This is used to type the class
10 * itself in meta-programming situations such as decorators.
11 */
12export type Constructor<T> = new (...args: any[]) => T;
13export declare function getDisplayName(ComponentClass: React.ComponentType | Named): string;