open-in-idx
Version:
SDK for opening workspaces in Project IDX
31 lines • 865 B
TypeScript
export interface AdhocWorkspaceContent {
/**
* A map of relative file paths (e.g. `src/foo.html`) to their contents (strings). Binary
* files aren't supported.
*/
files: Record<string, string>;
/**
* Optional workspace configuration.
*/
settings?: {
/**
* The starting point to build on.
*/
baselineEnvironment?: 'flutter' | undefined;
};
}
export interface AdhocWorkspaceOptions {
/**
* Override base URL for the API.
*/
url?: string;
/**
* Open IDX in a new browser tab/window.
*/
newWindow?: boolean;
}
/**
* Creates a new ad-hoc Project IDX workspace from the given file contents.
*/
export declare function newAdhocWorkspace(content: AdhocWorkspaceContent, options?: AdhocWorkspaceOptions): void;
//# sourceMappingURL=adhoc-workspaces.d.ts.map