Юниверс DG SDK UI
v2.15.0

Интерфейс ComponentClass<P, S>

interface ComponentClass<P = {}, S = ComponentState> {
    new ComponentClass(props: P, context?: any): Component<P, S>;
    childContextTypes?: ValidationMap<any>;
    contextType?: Context<any>;
    contextTypes?: ValidationMap<any>;
    defaultProps?: Partial<P>;
    displayName?: string;
    getDerivedStateFromError?: GetDerivedStateFromError<P, S>;
    getDerivedStateFromProps?: GetDerivedStateFromProps<P, S>;
    propTypes?: WeakValidationMap<P>;
}

Параметры типа

Иерархия (Просмотр сводки)

Индекс

Конструкторы

  • Параметры

    • props: P
    • Optionalcontext: any

    Возвращает Component<P, S>

Свойства

childContextTypes?: ValidationMap<any>
contextType?: Context<any>
contextTypes?: ValidationMap<any>
defaultProps?: Partial<P>
displayName?: string
getDerivedStateFromError?: GetDerivedStateFromError<P, S>
getDerivedStateFromProps?: GetDerivedStateFromProps<P, S>
propTypes?: WeakValidationMap<P>