mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 22:37:03 +00:00
Merge pull request #21749 from bomjacob/master
Add firefox-webext-browser types for FireFox WebExtension Development
This commit is contained in:
@@ -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
|
||||
+3148
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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"no-mergeable-namespace": false,
|
||||
"unified-signatures": false,
|
||||
"no-unnecessary-qualifier": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user