0.0.34 • Published 6 months ago
@types/firefox v0.0.34
Installation
npm install --save @types/firefox
Summary
This package contains type definitions for Mozilla Web API (https://developer.mozilla.org/en-US/docs/Web/API).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/firefox.
index.d.ts
// Type definitions for Mozilla Web API
// Project: https://developer.mozilla.org/en-US/docs/Web/API
// Definitions by: vvakame <https://github.com/vvakame>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// required lib.d.ts
// expand Navigator definietion.
interface Navigator {
mozApps:Apps;
}
interface Apps {
install(url:string, receipts?:any[]):DOMRequest<App>;
getSelf():DOMRequest<App>;
getInstalled():DOMRequest<App[]>;
checkInstalled(url:string): DOMRequest<App>;
}
interface DOMRequest<T> {
onsuccess: Function;
onerror: Function;
readyState:string; // "done" or "pending"
result:T;
error:Error;
}
interface App {
manifest:any;
manifestURL:string;
origin:string;
installOrigin:string;
installTime:number;
receipts:any[];
launch():void;
checkForUpdate():DOMRequest<any>;
}
Additional Details
- Last updated: Thu, 24 Jun 2021 22:31:20 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by vvakame.
0.0.32
8 months ago
0.0.33
7 months ago
0.0.34
6 months ago
0.0.31
3 years ago
0.0.30
4 years ago
0.0.29
7 years ago
0.0.28
8 years ago
0.0.27
8 years ago
0.0.26-alpha
8 years ago
0.0.25-alpha
8 years ago
0.0.24-alpha
8 years ago
0.0.23-alpha
8 years ago
0.0.22-alpha
8 years ago
0.0.21-alpha
8 years ago
0.0.20-alpha
8 years ago
0.0.15-alpha
8 years ago
0.0.14-alpha
8 years ago