diff --git a/src/mosaic.ts b/src/mosaic.ts index 546513f..542c66e 100644 --- a/src/mosaic.ts +++ b/src/mosaic.ts @@ -133,24 +133,4 @@ const calcVerticalSize = (first: Size, second: Size): VerticalSize => { firstHeight: swapped ? smallHeight : big.height, secondHeight: swapped ? big.height : smallHeight } as VerticalSize; -}; - -interface Size { - width: number; - height: number; -} - -interface HorizontalSize { - width: number; - height: number; - firstWidth: number; - secondWidth: number; -} - -interface VerticalSize { - width: number; - height: number; - firstHeight: number; - secondHeight: number; -} - +}; \ No newline at end of file diff --git a/src/types.d.ts b/src/types.d.ts index eda48e0..f53e36d 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -17,6 +17,25 @@ interface Request { }; } +interface Size { + width: number; + height: number; +} + +interface HorizontalSize { + width: number; + height: number; + firstWidth: number; + secondWidth: number; +} + +interface VerticalSize { + width: number; + height: number; + firstHeight: number; + secondHeight: number; +} + interface APIResponse { code: number; message: string;