mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-02-20 07:37:26 -05:00
* Better drag & drop into the os * Update drag.rs * Drag & Drop into Spacedrive from OS * Re-enable Supertokes & change Drag-rs pointer * Autoformat
38 lines
629 B
TypeScript
38 lines
629 B
TypeScript
declare global {
|
|
interface GlobalEventHandlersEventMap {
|
|
keybindexec: KeybindEvent;
|
|
deeplink: DeeplinkEvent;
|
|
filedrop: FileDropEvent;
|
|
}
|
|
}
|
|
|
|
export class KeybindEvent extends CustomEvent<{ action: string }> {
|
|
constructor(action: string) {
|
|
super('keybindexec', {
|
|
detail: {
|
|
action
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
export class DeeplinkEvent extends CustomEvent<{ url: string }> {
|
|
constructor(url: string) {
|
|
super('deeplink', {
|
|
detail: {
|
|
url
|
|
}
|
|
});
|
|
}
|
|
}
|
|
|
|
export class FileDropEvent extends CustomEvent<{ paths: string[] }> {
|
|
constructor(paths: string[]) {
|
|
super('filedrop', {
|
|
detail: {
|
|
paths
|
|
}
|
|
});
|
|
}
|
|
}
|