Type declare for electron-localshortcut
This commit is contained in:
parent
057add9270
commit
114a9c3af4
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "thedesk-vue",
|
"name": "thedesk-vue",
|
||||||
"version": "0.2",
|
"version": "0.2.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "TheDesk is a Mastodon client for PC.",
|
"description": "TheDesk is a Mastodon client for PC.",
|
||||||
"author": {
|
"author": {
|
||||||
|
|
|
@ -16,6 +16,9 @@
|
||||||
"webpack-env"
|
"webpack-env"
|
||||||
],
|
],
|
||||||
"paths": {
|
"paths": {
|
||||||
|
"*": [
|
||||||
|
"types/*"
|
||||||
|
],
|
||||||
"@/*": [
|
"@/*": [
|
||||||
"src/*"
|
"src/*"
|
||||||
]
|
]
|
||||||
|
@ -28,6 +31,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
|
"types/**/*.d.ts",
|
||||||
"src/**/*.ts",
|
"src/**/*.ts",
|
||||||
"src/**/*.tsx",
|
"src/**/*.tsx",
|
||||||
"src/**/*.vue",
|
"src/**/*.vue",
|
||||||
|
|
8
types/electron-localshortcut.d.ts
vendored
Normal file
8
types/electron-localshortcut.d.ts
vendored
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
import { BrowserWindow, Accelerator } from 'electron'
|
||||||
|
|
||||||
|
export function disableAll(win: BrowserWindow): void
|
||||||
|
export function enableAll(win: BrowserWindow): void
|
||||||
|
export function isRegistered(win: BrowserWindow, accelerator: Accelerator): void
|
||||||
|
export function register(win: BrowserWindow, accelerator: Accelerator, callback: () => void): void
|
||||||
|
export function unregister(win: BrowserWindow, accelerator: Accelerator): void
|
||||||
|
export function unregisterAll(win: BrowserWindow): void
|
Loading…
Reference in New Issue
Block a user