Skip to content

Commit

Permalink
[croppie] add missing type property for croppie 2.5 (DefinitelyTyped#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dklmuc authored and Andy committed Oct 16, 2017
1 parent ea8b7af commit 77f13a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion types/croppie/index.d.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 77f13a1

Please sign in to comment.