github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/webapp/javascript/types/custom.d.ts (about)

     1  /* eslint-disable max-classes-per-file */
     2  
     3  // Got from https://github.com/rodrigowirth/react-flot/blob/master/src/ReactFlot.d.ts
     4  declare module 'react-flot' {
     5    interface ReactFlotProps {
     6      id: string;
     7      data: ShamefulAny[];
     8      options: object;
     9      height?: string;
    10      width?: string;
    11    }
    12  
    13    class ReactFlot<CustomProps> extends React.Component<
    14      ReactFlotProps & CustomProps,
    15      ShamefulAny
    16    > {
    17      componentDidMount(): void;
    18  
    19      // componentWillReceiveProps(nextProps: any): void;
    20  
    21      draw(event?: ShamefulAny, data?: ShamefulAny): void;
    22  
    23      render(): ShamefulAny;
    24    }
    25    export = ReactFlot;
    26  }
    27  
    28  // From https://github.com/chantastic/react-svg-spinner/blob/master/index.d.ts
    29  declare module 'react-svg-spinner' {
    30    import React from 'react';
    31  
    32    type SpinnerProps = {
    33      size?: string;
    34      width?: string;
    35      height?: string;
    36      color?: string;
    37      thickness?: number;
    38      gap?: number;
    39      speed?: 'fast' | 'slow' | 'default';
    40    };
    41  
    42    export default React.FC<SpinnerProps>();
    43  }