@datalayer/core
Version:
[](https://datalayer.io)
15 lines (14 loc) • 483 B
TypeScript
type IFetchSessionId = {
url: string;
token?: string;
/**
* Custom fetch function to use instead of global fetch.
* Useful for proxying requests in environments with CORS restrictions (e.g., VS Code webviews).
*/
fetchFn?: typeof fetch;
};
/**
* Fetch the session ID of a collaborative documents from Datalayer.
*/
export declare function requestDatalayerCollaborationSessionId({ url, token, fetchFn, }: IFetchSessionId): Promise<string>;
export {};