Currently attempting to develop a chrome extension using angular2 and typescript, I have hit a roadblock in trying to access the chrome API (in this case, chrome.bookmarks).
I have successfully gained access to the chrome object by following guidance from this article on accessing chrome.runtime.sendMessage from typescript
Despite being able to reach the chrome object, I am unable to access chrome.bookmarks
manifest.json
{
"manifest_version": 2,
"name": "x",
"short_name": "x",
"description": "x",
"version": "0.1.0",
"author": "x",
"permissions": [
"bookmarks",
"https://ajax.googleapis.com/"
]
}
It appears that I should be utilizing @types to access chrome as recommended in this post on using chrome extension apis in typescript
However, I am unsure of what exactly to import. Should I use something like
import { Chrome, filesystem, filewriter } from '@types';
? I am feeling puzzled and struggling to find documentation on this issue (leading me to doubt the suitability of using angular2 for a chrome extension)