Update dependencies

Add focus signature with no argument and Document.fullscreenElement to Document interface.

Add sloppy typing to fuseOptions.
This commit is contained in:
Oliver Blanthorn 2018-11-01 15:33:50 +00:00
parent 170ce78115
commit d385e65a76
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
4 changed files with 530 additions and 327 deletions

824
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -8,34 +8,34 @@
"command-line-args": "^5.0.2",
"csp-serdes": "github:cmcaine/csp-serdes",
"css": "^2.2.4",
"fuse.js": "^3.2.1",
"fuse.js": "^3.3.0",
"mark.js": "^8.11.1",
"semver-compare": "^1.0.0"
},
"devDependencies": {
"@aoberoi/chokidar-cli": "^1.3.0",
"@types/jest": "^23.3.2",
"@types/node": "^10.9.4",
"@types/jest": "^23.3.9",
"@types/node": "^10.12.1",
"awesome-typescript-loader": "^5.2.1",
"cleanslate": "^0.10.1",
"copy-webpack-plugin": "^4.5.2",
"copy-webpack-plugin": "^4.6.0",
"jest": "^23.6.0",
"marked": "^0.5.0",
"marked": "^0.5.1",
"nearley": "^2.15.1",
"prettier": "^1.14.2",
"prettier": "^1.14.3",
"shared-git-hooks": "^1.2.1",
"source-map-loader": "^0.2.4",
"ts-jest": "^23.1.4",
"ts-jest": "^23.10.4",
"ts-node": "^7.0.1",
"typedoc": "^0.12.0",
"typedoc": "^0.13.0",
"typedoc-default-themes": "git://github.com/glacambre/typedoc-default-themes.git#fix_weird_member_names_bin",
"typescript": "^3.0.3",
"typescript": "^3.1.5",
"uglify-es": "^3.3.9",
"uglifyjs-webpack-plugin": "^1.3.0",
"uglifyjs-webpack-plugin": "^2.0.1",
"web-ext": "^2.9.1",
"web-ext-types": "github:kelseasy/web-ext-types",
"webpack": "^4.18.0",
"webpack-cli": "^3.1.0"
"webpack": "^4.23.1",
"webpack-cli": "^3.1.2"
},
"scripts": {
"build": "sh scripts/build.sh",

View file

@ -212,7 +212,7 @@ export abstract class CompletionSourceFuse extends CompletionSource {
return [undefined, undefined]
}
fuseOptions = {
fuseOptions: Fuse.FuseOptions<any> = {
keys: ["fuseKeys"],
shouldSort: true,
id: "index",

7
src/tridactyl.d.ts vendored
View file

@ -16,6 +16,11 @@ interface Window {
eval(str: string): any
}
// Firefox Document interface
interface Document {
fullscreenElement: HTMLElement | void
}
// Record that we've added a property with convenience objects to the
// window object:
interface Window {
@ -32,6 +37,8 @@ interface HTMLElement {
// Let's be future proof:
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus
focus(options: any): void
// Let's also implement the current function signature.
focus(): void
}
declare function exportFunction(