Merge pull request #21749 from bomjacob/master

Add firefox-webext-browser types for FireFox WebExtension Development
This commit is contained in:
Bowden Kelly
2017-12-06 13:51:04 -08:00
committed by GitHub
4 changed files with 3190 additions and 0 deletions
@@ -0,0 +1,10 @@
browser.nonexistentNS; // $ExpectError
browser.nonexistentNS.unknownMethod(); // $ExpectError
// Test that out overwritten things at least worked
browser.runtime.getManifest(); // $ExpectType WebExtensionManifest
browser.test; // $ExpectError
browser.manifest; // $ExpectError
browser._manifest; // $ExpectType typeof _manifest
browser._manifest.WebExtensionLangpackManifest; // $ExpectError
browser._manifest.NativeManifest; // $ExpectError
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,24 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6",
"dom"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"firefox-webext-browser-tests.ts"
]
}
+8
View File
@@ -0,0 +1,8 @@
{
"extends": "dtslint/dt.json",
"rules": {
"no-mergeable-namespace": false,
"unified-signatures": false,
"no-unnecessary-qualifier": false
}
}