mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-05 10:30:55 +01:00
Moved mosaic types to types
This commit is contained in:
parent
9ae68c66c5
commit
e200dc7d47
2 changed files with 20 additions and 21 deletions
|
@ -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
19
src/types.d.ts
vendored
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue