@limitless-angular/sanity
Version:
A powerful Angular library for Sanity.io integration, featuring Portable Text rendering and optimized image loading.
22 lines (21 loc) • 766 B
TypeScript
import type { ContentSourceMapDocuments } from '@sanity/client/csm';
import * as i0 from "@angular/core";
type UseDocumentsInUseConfig = {
projectId: string;
dataset: string;
};
export declare class UseDocumentsInUseService {
private isBrowser;
private destroyRef;
private comlink$;
private connected$;
private documentsInUse$;
private documentsInUse;
initialize(config: UseDocumentsInUseConfig): this;
private setupChannelIfNeeded;
private setupDocumentSync;
updateDocumentsInUse(documentsInUse: Map<string, ContentSourceMapDocuments[number]>): void;
static ɵfac: i0.ɵɵFactoryDeclaration<UseDocumentsInUseService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<UseDocumentsInUseService>;
}
export {};