[croppie] add missing type property for croppie 2.5 (#20484)

This commit is contained in:
Jaye
2017-10-16 13:16:33 -07:00
committed by Andy
parent ea8b7af8c6
commit 77f13a18d6
+5 -1
View File
@@ -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 <https://github.com/connor4312>
// dklmuc <https://github.com/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;