add firefox extension template
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package webextension_polyfill.clipboard;
|
||||
|
||||
/**
|
||||
The type of imageData.
|
||||
**/
|
||||
typedef SetImageDataImageTypeEnum = String;
|
9
externs/webextension_polyfill/clipboard/Static.hx
Normal file
9
externs/webextension_polyfill/clipboard/Static.hx
Normal file
@@ -0,0 +1,9 @@
|
||||
package webextension_polyfill.clipboard;
|
||||
|
||||
typedef Static = {
|
||||
/**
|
||||
Copy an image to the clipboard. The image is re-encoded before it is written to the clipboard. If the image is invalid,
|
||||
the clipboard is not modified.
|
||||
**/
|
||||
function setImageData(imageData:js.lib.ArrayBuffer, imageType:SetImageDataImageTypeEnum):js.lib.Promise<ts.Undefined>;
|
||||
};
|
Reference in New Issue
Block a user