mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 12:30:18 +00:00
[croppie] add missing type property for croppie 2.5 (#20484)
This commit is contained in:
Vendored
+5
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user