mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
25 lines
552 B
TypeScript
25 lines
552 B
TypeScript
// Interfaces common to the tridactyl project.
|
|
|
|
// For some obscure reason, tsc doesn't like .d.ts files to share a name with
|
|
// .ts files. So don't do that.
|
|
|
|
interface Number {
|
|
mod(n: number): number
|
|
}
|
|
|
|
// For content.ts
|
|
interface Message {
|
|
type:
|
|
"excmd_contentcommand" |
|
|
"keydown" |
|
|
"keydown_suppress" |
|
|
"commandline"
|
|
// And other unknown attributes...
|
|
[key: string]: any
|
|
}
|
|
|
|
// Firefox-specific dom properties
|
|
interface Window {
|
|
scrollByLines(n: number): void
|
|
scrollByPages(n: number): void
|
|
}
|