Add .d.ts files
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
declare function _exports({ imageInputFile, maxWidth, imagePreviewNode, }: {
|
||||
imageInputFile: {
|
||||
name: string;
|
||||
};
|
||||
maxWidth?: number;
|
||||
imagePreviewNode?: HTMLImageElement;
|
||||
}): Promise<any>;
|
||||
export = _exports;
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
declare namespace _exports {
|
||||
export { FunctionReturn };
|
||||
}
|
||||
declare function _exports({ imageInput, maxWidth, mimeType, }: {
|
||||
imageInput: HTMLInputElement;
|
||||
maxWidth?: number;
|
||||
mimeType?: [string];
|
||||
}): Promise<FunctionReturn>;
|
||||
export = _exports;
|
||||
type FunctionReturn = {
|
||||
imageBase64: string;
|
||||
imageBase64Full: string;
|
||||
imageName: string;
|
||||
};
|
||||
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
declare namespace _exports {
|
||||
export { FunctionReturn };
|
||||
}
|
||||
declare function _exports({ inputFile, allowedRegex }: {
|
||||
inputFile: {
|
||||
name: string;
|
||||
size: number;
|
||||
type: string;
|
||||
};
|
||||
allowedRegex?: RegExp;
|
||||
}): Promise<FunctionReturn>;
|
||||
export = _exports;
|
||||
type FunctionReturn = {
|
||||
fileBase64: string;
|
||||
fileBase64Full: string;
|
||||
fileName: string;
|
||||
fileSize: number;
|
||||
fileType: string;
|
||||
};
|
||||
Reference in New Issue
Block a user