Moved mosaic types to types

This commit is contained in:
dangered wolf 2022-07-28 11:15:28 -07:00
parent 9ae68c66c5
commit e200dc7d47
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58
2 changed files with 20 additions and 21 deletions

View file

@ -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;
}
};

19
src/types.d.ts vendored
View file

@ -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;