index.d.ts 614 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
import React from 'react';
import * as H from 'history';

export interface ExceptionProps<
  L = {
    to: H.LocationDescriptor;
    href?: H.LocationDescriptor;
    replace?: boolean;
    innerRef?: (node: HTMLAnchorElement | null) => void;
  }
> {
jim's avatar
jim committed
12
  type?: '403' | '404' | '500';
13 14 15 16
  title?: React.ReactNode;
  desc?: React.ReactNode;
  img?: string;
  actions?: React.ReactNode;
17
  linkElement?: string | React.ComponentType<L>;
jim's avatar
jim committed
18
  style?: React.CSSProperties;
kenve's avatar
kenve committed
19 20
  className?: string;
  backText?: React.ReactNode;
ι™ˆεΈ…'s avatar
ι™ˆεΈ… committed
21
  redirect?: string;
22
}
23
export default class Exception extends React.Component<ExceptionProps, any> {}