Home > tab-info
tab-info package
A chrome extension for surfacing web application metadata more noticably in your browser’s toolbar. see more in the chrome web store
Classes
| Class |
Description |
| UnreachableError |
An error class intended for code that should not be reachable acording to constraints that the type system knows about.This is particularly useful when used to implement the “exhaustive switch” or “exhaustive conditional” control flow patterns |
Functions
Interfaces
| Interface |
Description |
| ContentScriptReadyMessage |
A message sent from the content script to the background thread to (1) indicate that the content script has loaded and (2) pass the current page info along |
| FetchRemotePageInfoMessage |
A message sent *from* the content script *to* the background script asking for pageInfo to be fetched from some API endpoint. |
| GetPageInfoMessage |
A message sent *to* the content script by either the background script or popup frame, as a request to respond with a PageInfo value |
| MessageBase |
A base class for messages sent between the three actors in this extension (popup, background thread, content script)Each message should have a unique key, so that we can identify them easily and handle them appropriately |
| MessageMap |
A mapping of message keys to the types that define their entire shape |
| PageInfo |
A wrapper around the TabInfo object that allows us to capture an enabled/disabled state |
| RemotePageInfoPayload |
JSON structure provided by a remote tab info information source |
| TabInfo |
Information about content rendered within a browser tabThis is provided to the extension’s popup UI, for presentation to the user |
Variables
Type Aliases