FDC3 API operations make use of several type declarations.
type Context = object;
The base object that all contexts should extend.
The API specification allows this to be any object, but typically this is supposed to be a context data object adhering to the Context Data Specification.
This means that it must at least have a
type property that indicates what type of data it represents, e.g.
type ContextHandler = (context: Context) => void;
Describes a callback that handles a context event.
Used when attaching listeners for context broadcasts and raised intents.
type TargetApp = string | AppMetadata;
Operations that target apps (like
raiseIntent) can identify an app just by by its name,
or pass full app metadata, giving the desktop agent more information about the targeted app.