Skip to content

Commit 0407ace

Browse files
authored
Added typescript declarations.
1 parent d4ef4ef commit 0407ace

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

react-css-loaders.d.ts

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
declare module 'react-css-loaders' {
2+
import {FC} from "react";
3+
4+
export interface IReactCssLoaderProps {
5+
color?: string,
6+
duration?: number,
7+
size?: number
8+
}
9+
10+
export interface IReactCssLoaderWithBackgroundProps extends IReactCssLoaderProps {
11+
background?: string
12+
}
13+
14+
export const BarLoader: FC<IReactCssLoaderProps>;
15+
export const BubbleLoader: FC<IReactCssLoaderProps>;
16+
export const BubbleSpinLoader: FC<IReactCssLoaderProps>;
17+
export const CometSpinLoader: FC<IReactCssLoaderProps>;
18+
export const CylinderSpinLoader: FC<IReactCssLoaderProps>;
19+
export const RotateSpinLoader: FC<IReactCssLoaderProps>;
20+
export const ResizeSpinLoader: FC<IReactCssLoaderWithBackgroundProps>;
21+
export const SpinLoader: FC<IReactCssLoaderWithBackgroundProps>;
22+
}

0 commit comments

Comments
 (0)