Conform src/components/views/messages/*
code to strictNullChecks
(#10461)
This commit is contained in:
parent
7cb90d0f78
commit
cefd94859c
21 changed files with 109 additions and 96 deletions
|
@ -35,7 +35,7 @@ export enum ImageSize {
|
|||
* @param {number} maxHeight Overrides the default height limit
|
||||
* @returns {Dimensions} The suggested maximum dimensions for the image
|
||||
*/
|
||||
export function suggestedSize(size: ImageSize, contentSize: Dimensions, maxHeight?: number): Dimensions {
|
||||
export function suggestedSize(size: ImageSize, contentSize: Dimensions, maxHeight?: number): Required<Dimensions> {
|
||||
const aspectRatio = contentSize.w! / contentSize.h!;
|
||||
const portrait = aspectRatio < 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue