From 96703ce678bbac139a5e9b381ac7445ff0c87c98 Mon Sep 17 00:00:00 2001 From: Evan Kesten Date: Tue, 6 Aug 2019 09:01:22 -0700 Subject: [PATCH] 'meta' and 'crop' were required under certain conditions when they shouldn't have been (#37387) --- types/blueimp-load-image/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/blueimp-load-image/index.d.ts b/types/blueimp-load-image/index.d.ts index 36ccd0e26b..9258bd3791 100644 --- a/types/blueimp-load-image/index.d.ts +++ b/types/blueimp-load-image/index.d.ts @@ -34,13 +34,13 @@ export type CanvasOptions = CanvasTrueOptions | CanvasFalseOptions; // Setting 'aspectRatio' automatically enables 'crop', so setting 'crop' to // 'false' in that case is not valid export interface CropTrueOptions { crop?: true; aspectRatio?: AspectRatio; } -export interface CropFalseOptions { crop: false; } +export interface CropFalseOptions { crop?: false; } export type CropOptions = CanvasTrueOptions | CropFalseOptions; // Setting 'orientation' automatically sets 'meta' to true // so setting it to false is not valid in that case export interface MetaTrueOptions { meta?: true; orientation: Orientation; } -export interface MetaFalseOptions { meta: false; } +export interface MetaFalseOptions { meta?: false; } export type MetaOptions = MetaTrueOptions | MetaFalseOptions; export type LoadImageOptions = BasicOptions & CanvasOptions & CropOptions & MetaOptions;