From e200dc7d47bfe4ea7d30e119914ef233f294630c Mon Sep 17 00:00:00 2001 From: dangered wolf Date: Thu, 28 Jul 2022 11:15:28 -0700 Subject: [PATCH] Moved mosaic types to types --- src/mosaic.ts | 22 +--------------------- src/types.d.ts | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 21 deletions(-) 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;