Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* @flow */
import DataExplorer from "@nteract/data-explorer";
export type MIMETYPE = "application/vnd.dataresource+json";
export const DATA_EXPLORER_MEDIA_TYPE: MIMETYPE =
"application/vnd.dataresource+json";
(DataExplorer.MIMETYPE: MIMETYPE);
export const DATA_EXPLORER_URI = "atom://hydrogen-data-explorer/dock-view";
// Just the basics, there is more to fully type this
// https://frictionlessdata.io/specs/tabular-data-resource/
export type DataResource = {
data: Array>,
schema: { fields: Array<{ name: string, type: string }> }
};
/**
* Open a pane container (dock or workspace center) without focusing it
* @export
* @param {string} URI
* @returns {Promise}
*