UNPKG

@datalayer/core

Version:

[![Datalayer](https://assets.datalayer.tech/datalayer-25.svg)](https://datalayer.io)

15 lines (14 loc) 483 B
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 {};