forked from dcyoung/r3f-audio-visualizer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
34 lines (32 loc) · 1.35 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import PropTypes from 'prop-types';
import { RefObject } from 'react';
declare type EqualizerProps = {
amplitude?: number;
audio: RefObject<HTMLMediaElement>;
backgroundColor?: string;
cubeSideLength?: number;
cubeSpacing?: number;
cameraFov?: number;
cameraPosition?: [number, number, number];
gridRows?: number;
gridCols?: number;
loadingFallback?: JSX.Element;
onCreatedCallback?: () => void;
};
declare function Equalizer({ amplitude, audio, backgroundColor, cubeSideLength, cubeSpacing, cameraFov, cameraPosition, gridCols, gridRows, loadingFallback, onCreatedCallback }: EqualizerProps): JSX.Element;
declare namespace Equalizer {
var propTypes: {
amplitude: PropTypes.Requireable<number>;
audio: PropTypes.Validator<object>;
backgroundColor: PropTypes.Requireable<string>;
cubeSideLength: PropTypes.Requireable<number>;
cubeSpacing: PropTypes.Requireable<number>;
cameraFov: PropTypes.Requireable<number>;
cameraPosition: PropTypes.Requireable<any[]>;
gridCols: PropTypes.Requireable<number>;
gridRows: PropTypes.Requireable<number>;
loadingFallback: PropTypes.Requireable<PropTypes.ReactElementLike>;
onCreatedCallback: PropTypes.Requireable<(...args: any[]) => any>;
};
}
export { Equalizer as default };