Created
July 21, 2017 06:34
-
-
Save kva1966/e758f24c8f0db90c86d1d06bf7ea72f8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare namespace browser.bookmarks { | |
export interface BookmarkTreeNode { | |
id: string; | |
parentId: string; | |
title: string; | |
index: string; | |
url?: string; | |
children?: BookmarkTreeNode[]; | |
unmodifiable?: string; | |
} | |
export function get(id: string | string[]): Promise<Array<BookmarkTreeNode>>; | |
export function getTree(): Promise<Array<BookmarkTreeNode>>; | |
} | |
declare namespace browser.tabs { | |
interface CanAddListener { | |
addListener(fn: (tabs: browser.tabs.Tab[]) => void): void; | |
} | |
export interface Tab { | |
title: string; | |
url: string; | |
} | |
export var onUpdated: CanAddListener; | |
export var onActivated: CanAddListener; | |
export function query(params: object): Promise<browser.tabs.Tab[]>; | |
} | |
declare namespace browser.windows { | |
export var onFocusChanged: browser.tabs.CanAddListener; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment