From 77f13a18d67f53ea04d03f49a0a095aa420512d2 Mon Sep 17 00:00:00 2001 From: Jaye Date: Mon, 16 Oct 2017 22:16:33 +0200 Subject: [PATCH] [croppie] add missing type property for croppie 2.5 (#20484) --- types/croppie/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/croppie/index.d.ts b/types/croppie/index.d.ts index 78ab07ad61..ec4626aa7f 100644 --- a/types/croppie/index.d.ts +++ b/types/croppie/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for croppie 2.4 +// Type definitions for croppie 2.5 // Project: https://github.com/Foliotek/Croppie // Definitions by: Connor Peet +// dklmuc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export default class Croppie { @@ -31,7 +32,10 @@ export type CropType = 'square' | 'circle'; export type Format = 'jpeg' | 'png' | 'webp'; +export type Type = 'canvas' | 'base64' | 'html' | 'blob' | 'rawcanvas'; + export interface ResultOptions { + type?: Type; size?: 'viewport' | 'original' | { width: number, height: number }; format?: Format; quality?: number;